On Thu, 15 Mar 2001, Vineeta wrote:
>
> 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
>
>From the error message, the file you are trying to delete is not realy a
file, but a directory, and trashdir is realy a file, not a directory.

What does "file trashdir" return.  Also, what does file say about the
file name you are using when trying your new rm command?

Mikkel
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



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

Reply via email to