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
|
obj: concept
|
||||||
arch-wiki: https://wiki.archlinux.org/title/Command-line_shell
|
arch-wiki: https://wiki.archlinux.org/title/Command-line_shell
|
||||||
wiki: https://en.wikipedia.org/wiki/Unix_shell
|
wiki: https://en.wikipedia.org/wiki/Unix_shell
|
||||||
rev: 2024-09-05
|
rev: 2024-09-16
|
||||||
---
|
---
|
||||||
|
|
||||||
# Shell
|
# Shell
|
||||||
|
@ -341,6 +341,7 @@ done
|
||||||
|
|
||||||
### Functions
|
### 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.
|
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
|
```shell
|
||||||
greet() {
|
greet() {
|
||||||
|
|
Loading…
Reference in a new issue