Fix number of args

Atanas Yankov
2020-09-01 15:10:51 +03:00
parent 8f255659a0
commit efe143bc0e

@@ -16,7 +16,7 @@ cp "$@" ~/dir
Double quotes around `$@` (and similarly, `${array[@]}`) prevents globbing and word splitting of individual elements, while still expanding to multiple separate arguments.
Let's say you have three arguments: `baz`, `foo bar`, `*` and `/*/*/*/*`
Let's say you have four arguments: `baz`, `foo bar`, `*` and `/*/*/*/*`
`"$@"` will expand into exactly that: `baz`, `foo bar`, `*` and `/*/*/*/*`