Você usa bash? homem bash:
There is no mechanism for using arguments in the replacement text. If
arguments are needed, a shell function should be used (see FUNCTIONS
below).
Use a função, por exemplo:
rm() { cp $* ~/dustbin; /bin/rm $*; }
eu tentei usar o alias do Linux:
rm='cp $* ~/dustbin; rm $*'
mas relatou 'operando o arquivo de destino ausente após ~ / dustbin', por que o cp não reconheceu o ~ / dustbin como destino?
Você usa bash? homem bash:
There is no mechanism for using arguments in the replacement text. If
arguments are needed, a shell function should be used (see FUNCTIONS
below).
Use a função, por exemplo:
rm() { cp $* ~/dustbin; /bin/rm $*; }
Tags cp