[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash tab variable expansion question?
From: |
Andreas Schwab |
Subject: |
Re: bash tab variable expansion question? |
Date: |
Fri, 25 Feb 2011 10:46:40 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Eric Blake <eblake@redhat.com> writes:
> On 02/24/2011 03:14 PM, Michael Kalisz wrote:
>> $ echo $PWD/<TAB>
>> will expand the $PWD variable to your current directory
>>
>> while in bash, version 4.2.0(1)-release:
>>
>> $ echo $PWD/<TAB>
>> will just escape the $ in front of the $ variable i.e:
>>
>> $ echo \$PWD/
>> The shell-expand-line (Ctrl-Alt-e) works but before I could use just TAB
>>
>> Any hints why? Any way to get the 4.1 behavior in 4.2?
>>
>> Can someone confirm... Is this a bug or a feature?
>
> I'm not the developer, but in my mind, this is a welcome feature.
Looks like you didn't read what Michael wrote.
> TAB-completion should NOT modify what I typed,
Except that it does. $PWD/ and \$PWD/ are quite different things.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- bash tab variable expansion question?, Michael Kalisz, 2011/02/24
- Re: bash tab variable expansion question?, Eric Blake, 2011/02/25
- Re: bash tab variable expansion question?,
Andreas Schwab <=
- Re: bash tab variable expansion question?, Davide Brini, 2011/02/25
- Re: bash tab variable expansion question?, Clark J. Wang, 2011/02/25
- Re: bash tab variable expansion question?, Greg Wooledge, 2011/02/25
- Re: bash tab variable expansion question?, Andreas Schwab, 2011/02/25
- Message not available
- Re: bash tab variable expansion question?, gnu.bash.bug, 2011/02/25
- Re: bash tab variable expansion question?, Bob Proulx, 2011/02/25
- Re: bash tab variable expansion question?, Andreas Schwab, 2011/02/26
- Message not available
- Re: bash tab variable expansion question?, gnu.bash.bug, 2011/02/26
- Re: bash tab variable expansion question?, Clark J. Wang, 2011/02/27
- Re: bash tab variable expansion question?, Michael Kalisz, 2011/02/27