> The example uses $HOME/trashdir, not ./trasdir - the difference is
> important unless you have a trashdir directory in every directory
where
> you are going to use the rm command.

I am only trying this in my home directory i.e. /home/vineeta.
under vineeta dir.,i have a dir. called trashdir.
Now,my script lies in /home/vineeta

So,what's going wrong with alias rm='mv $1 ./trashdir'  ??
As statux put it,use "$1" in quotes.
I missed out this.But,what's the difference.

Now,if i try out what statux says i.e. alias rm='mv "$1" $HOME/trashdir"
,i get:

mv: when moving multiple files,last arguement must be a directory.

Vineeta



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to