update shell

This commit is contained in:
JMARyA 2024-09-16 10:02:15 +02:00
parent cb49dab032
commit 4b51b414c6
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -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() {