Package: bash
Version: 4.2+dfsg-0.1
Severity: normal

Completion wrongly adds a \ before $ when special characters follow:

% mkdir test
% touch test/a:
% X=test
% echo $X/<TAB>

results in:

% echo \$X/a\:

with a wrong \ before $ which is not meant to be escaped but to
refer to the variable X (as it is interpreted correctly during the
completion, otherwise "a:" wouldn't have been found).

It only happens if the completed file name contains a special
character (here: ":", which actually isn't special to the shell and
wouldn't need escaping AFAIK, but that's another issue ...)

-- System Information:
Debian Release: 7.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'stable')
Architecture: i386 (i686)

Versions of packages bash depends on:
ii  base-files   7.1wheezy4
ii  dash         0.5.7-3
ii  debianutils  4.3.2
ii  libc6        2.13-38+deb7u1
ii  libtinfo5    5.9-10

Versions of packages bash recommends:
ii  bash-completion  1:2.0-1

Versions of packages bash suggests:
pn  bash-doc  <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to