Why do I need to use cd "$@" instead of cd "$1" when writing a wrapper for cd? – unix.stackexchange.com

Elsewhere I have seen a cd function as below: cd() { builtin cd "$@" } why is it recommended to use $@ instead of $1? I created a test directory "r st" and called the script containing this ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Why do I need to use cd "$@" instead of cd "$1" when writing a wrapper for cd? – unix.stackexchange.com"