update shell
This commit is contained in:
parent
cb49dab032
commit
4b51b414c6
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
obj: concept
|
||||
arch-wiki: https://wiki.archlinux.org/title/Command-line_shell
|
||||
wiki: https://en.wikipedia.org/wiki/Unix_shell
|
||||
rev: 2024-09-05
|
||||
rev: 2024-09-16
|
||||
---
|
||||
|
||||
# Shell
|
||||
|
@ -341,6 +341,7 @@ done
|
|||
|
||||
### Functions
|
||||
You can define your own functions. The arguments you give to the functions can be accessed via `$1`, `$2`, `$n`, etc. The same way the arguments passed to a shell script can be accessed.
|
||||
To get all passed in arguments as is use `$@`.
|
||||
|
||||
```shell
|
||||
greet() {
|
||||
|
|
Loading…
Reference in a new issue