[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with list of aliases

From: Chet Ramey
Subject: Re: Problem with list of aliases
Date: Tue, 14 Mar 2017 13:54:21 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 3/14/17 12:56 PM, Pedro Gimeno wrote:
> When using the 'alias' command without parameters, or with the '-p' 
> parameter, a list of aliases is displayed. This list has the form:
>   alias name='value'
> 'help alias' states that this form is 'reusable', thus implying, if I 
> understand it correctly, that it can be fed back to bash.
> But that's not always the case. I have an alias called '-' that resolves to 
> 'cd -'. This alias needs to be entered as follows:
>   alias -- -='cd -'
> However, it is output by the 'alias' command as:
>   alias -='cd -'

This was changed in bash-4.4.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]