On Sat, 17 Mar 2001, Vineeta wrote:
>
> Mikkel,
> But,in the other example which i gave you,as follows:
> alias rm='cat $1 >testall'
>
> works without any problems.Isn't $1 the arguement passed to rm cmd in this case
> too..??
>
> Vineeta
>
You would think it would be. But for some reasion the order gets mixed
up. Try this:
alias t-echo='echo $1 is the first varable'
You would expect the output of the command "t-echo this" to be
this is the firest varable
but what you get is
is the first varable this
Your errors when using the move command lead me to believe that this is
also happening with the aliased rm command.
Putting quotes around the $1 does not help.
Maybe someone that know a bit more about the bash shell can tell us what
is going on? I do not have time to research this right now...
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