2
0
Fork 0
mirror of https://github.com/Idnan/bash-guide.git synced 2018-11-09 02:29:39 +01:00

fix function spelling mistake issue #15 (#16)

This commit is contained in:
Shahid Ahmad 2017-04-04 17:05:16 +05:00 committed by Adnan Ahmed
parent 5127d4e5c9
commit 50097044da

View file

@ -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