-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2142
Vidar Holen edited this page Jan 21, 2015
·
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.