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