On Saturday 08 January 2005 19:08, Alexander Dalloz wrote: > Am Sa, den 08.01.2005 schrieb Chadley Wilson um 17:48: <snipped> > > My /root/.bashrc contains by default: > > # User specific aliases and functions > > alias rm='rm -i' > alias cp='cp -i' > alias mv='mv -i > > And when I run following test script it works as expected. > > $ cat testsh.sh > > #!/bin/bash > > # echo all aliases set > alias | wc -l > alias | egrep 'cp|mv' > > # remove aliases for cp and mv > echo "" > echo "unalias cp and mv" > echo "" > unalias cp > unalias mv > > # echo all aliases set > alias | wc -l > alias | egrep 'cp|mv' > > ## script end > > Alexander I can't begin to explain how strange this is I have run your script as posted on two different system both with fresh installs heres the output[root@check39 ~]# sh test.sh all aliases set 0 unalias cp and mv test.sh: line 9: unalias: cp: not found test.sh: line 10: unalias: mv: not found 0 [root@check39 ~]# alias alias cp='cp -i' alias l.='ls -d .* --color=tty' alias ll='ls -l --color=tty' alias ls='ls --color=tty' alias rm='rm -i' alias vi='vim' alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde' [root@check39 ~]# . -- Chadley Wilson Redhat Certified Technician Cert Number: 603004708291270 Pinnacle Micro Manufacturers of Proline Computers ==================================== Exercise freedom, Use LINUX =====================================