Re: using echo 'text' > file (to add to last line of several…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Eric Shubert
Date:  
To: plug-discuss
Subject: Re: using echo 'text' > file (to add to last line of several documents)
On 10/27/2010 12:30 PM, Matt Graham wrote:
> From: Eric Shubert<>
>> I always take the later route, using scripts in favor of aliases. I
>> never really liked using aliases. I don't like changing the behavior of
>> commands that already exist, as that tends to break other things.
>
> "Alias" is sort of a misnomer since you can create a new syntactic sugar-like
> command instead of changing the behavior of an existing one. I've had these
> in my .bashrc for over 10 years now:
>
> alias ..='cd ..'
> alias ...='cd ../..'
>
> ....and I don't believe you can write a script named ".." without a lot of
> fooling around....
>


What happens though when you try to use the real command? Does it result in:
$ cd cd ..
?

--
-Eric 'shubes'

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss