[Top][All Lists]

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

bash tab variable expansion question?

From: Michael Kalisz
Subject: bash tab variable expansion question?
Date: Thu, 24 Feb 2011 23:14:01 +0100 (CET)
User-agent: SquirrelMail/1.4.8-5.el5.centos.10

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/local/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -g -O2
uname output: Linux penguin.localdomain 2.6.18-194.26.1.el5.028stab079.2
#1 SMP Fri Dec 17 19:25:14 MSK 2010 i686 i686 i386 GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 4.2
Patch Level: 0
Release Status: release




In bash, version 4.1.5(1)-release:

$ 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?

Thanks in advance


reply via email to

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