Follow

@UncleAlbie @urusan
Great suggestion, also including pushd/popd!

The $1 could also be replaced with "$@" (including quotation marks), to avoid problems with parameters with spaces. See here for more information:

"What is the difference between $* and $@?"
unix.stackexchange.com/a/41595

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.