Update bash.md

This commit is contained in:
Petar Babić authored and GitHub committed 2022-01-22 14:36:31 +01:00
1 parent c8034cc9ae
commit 3d6a297cda
1 file changed
+12
+12
View File
@@ -84,6 +84,18 @@ See: [Special parameters](http://wiki.bash-hackers.org/syntax/shellvars#special_
### Optional arguments
```bash
args=("$@")
args+=(foo)
args+=(bar)
baz "${args[@]}"
```
Put the arguments into an array and then append to the array.
### Functions
```bash