[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rm issue
From: |
ams |
Subject: |
Re: rm issue |
Date: |
Fri, 02 Dec 2005 20:16:07 +0100 |
Have you considered using shell functions or aliases to do the same
thing? For example, in bash, some people like doing:
alias rm='rm -i'
If one wants to really change the default behaviour (i.e. making
scripts use `rm -i') then one can always introduce a new command:
cat << EOF > ~/bin/rm
#!/bin/sh
/bin/rm -i $@
EOF
chmod a+x ~/bin/rm
or so, that way all programs that use rm will use your version of it,
and the reall rm will always get -i.