No typo. It must be quoted as &quot;$@&quot;. If you think otherwise, test with some filenames containing spaces. Or read here: <a href="http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;448407&#x2F;bash-script-to-receive-and-repass-quoted-parameters" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;448407&#x2F;bash-script-to-rec...</a>