mirror of https://github.com/Idnan/bash-guide.git
parent
5127d4e5c9
commit
50097044da
|
@ -948,7 +948,7 @@ function say {
|
||||||
say "hello world!"
|
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
|
## 2.4. Conditionals
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue