mirror of
https://github.com/Idnan/bash-guide.git
synced 2018-11-09 02:29:39 +01:00
parent
5127d4e5c9
commit
50097044da
1 changed files with 1 additions and 1 deletions
|
@ -948,7 +948,7 @@ function say {
|
|||
say "hello world!"
|
||||
```
|
||||
|
||||
When you run the above example the `hello` function will output "world!". The above two functions `hello` and `say` are identical. The main difference is function `say`. This function, prints the first argument it receives. Arguments, within funtions, are treated in the same manner as arguments given to the script.
|
||||
When you run the above example the `hello` function will output "world!". The above two functions `hello` and `say` are identical. The main difference is function `say`. This function, prints the first argument it receives. Arguments, within functions, are treated in the same manner as arguments given to the script.
|
||||
|
||||
## 2.4. Conditionals
|
||||
|
||||
|
|
Loading…
Reference in a new issue