bug-bash
[Top][All Lists]
Advanced

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

Re: How not to expand a environment variable when doing command completi


From: Chet Ramey
Subject: Re: How not to expand a environment variable when doing command completion?
Date: Tue, 25 May 2010 22:43:09 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1

On 5/25/10 10:28 PM, Peng Yu wrote:
> On Tue, May 25, 2010 at 9:18 PM, Chet Ramey <chet.ramey@case.edu> wrote:
>>> When I type 'cd $HOME/.<TAB>', bash will expand the command to 'cd
>>> /home/my_user_name/.'. Would you please let me know how to let bash
>>> expand the environment variable?
>>
>> There is no setting to suppress the environment variable expansion.  Bash
>> has behaved this way for many years.
> 
> This default behavior may not be always wanted. Will a setting be
> added to suppress the expansion in future versions of bash?

I have no current plans to do so.


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



reply via email to

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