Re:Bash $* and $@ (2017)
by pjc50 on Monday January 13, 2020 @05:56AM
(#22033387)
Shell is brilliant until you need to keep a filename in a variable. Or, worse, read filenames from the output of a command. Since basically everything except '/' and '\0' is a valid filename character, the potential for mishaps or exploits is huge.
That's where we came in with the need to use "$@" vs the unsafe-by-default bare $@.
That's where we came in with the need to use "$@" vs the unsafe-by-default bare $@.