bug-bash
[Top][All Lists]
Advanced

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

Re: bash tab variable expansion question?


From: Davide Brini
Subject: Re: bash tab variable expansion question?
Date: Fri, 25 Feb 2011 09:46:58 +0000
User-agent: KMail/1.13.5 (Linux/2.6.36-gentoo-r5; KDE/4.4.5; x86_64; ; )

On Friday 25 Feb 2011 05:15:24 Eric Blake wrote:

> 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.
> TAB-completion should NOT modify what I typed, and I consider the 4.1
> behavior to be the bug.

Maybe, but then it shouldn't escape the $ either, as the OP is reporting for 
4.2 (I don't have a 4.2 handy to test it).

-- 
D.



reply via email to

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