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: gnu.bash.bug
Subject: Re: bash tab variable expansion question?
Date: Fri, 25 Feb 2011 04:30:34 -0800 (PST)
User-agent: G2/1.0

Look at the following example:

# touch 'file name with a space'

if I press

# ll file<TAB>

then I get:

# ll file\ name\ with\ a\ space
-rw-r--r--   1 root       sys              0 Feb 25 13:10 file name
with a space

The backslash '\' which reminds me of:

# cd /tmp
# mkdir hello

# cd $PWD/hello<TAB>

Which gives me:

# cd \$PWD/hello

instead

# cd /tmp/hello

(if I press ESC Ctrl-e twice it when the \$PWD is diplayd the it  will
expand the $PWD variable correctly)

Anyhow...This "feature" seems new to 4.2.0 and differs from previous
bash versions.

Any hints how the get back the old behavior?

//Michael


reply via email to

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