-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2142
koalaman edited this page May 17, 2014
·
6 revisions
alias archive='mv "$@" /backup'
archive() { mv "$@" /backup; }
Aliases just substitute the start of a command with something else. They therefore can't use positional parameters, such as $1
. Rewrite your alias as a function.
None.