Whenever I'm writing a script (or function) that is supposed to "pass along" its arguments to some other downstream "callable" (binary, script, function, etc.)
foo, I code this passing along of arguments like this
...but I have also seen this alternative
I have tried, unsuccessfully (at least with
zsh), to concoct scenarios in which these two approaches would produce different results.
Are they really synonymous? If not, when would one prefer one form over the other?
(I'm primarily interested in the case of
zsh, which is my everyday shell, but at work I often need to write
bash scripts, so I'd be curious about the answer to this question for
bash as well.)