Package: bash Version: 4.2+dfsg-0.1 Severity: normal Variables containing directory names are not handled correctly with completion:
% FOO=/tmp/test % mkdir $FOO % mkdir $FOO/bar % cat $FO<TAB> results in: cat $FOO<SPACE> instead of cat $FOO/ as if $FOO were a file rather than a directory. It even happens with subdirectories: % cat $FOO/ba<TAB> results in cat $FOO/bar<SPACE> instead of cat $FOO/bar/ as if $FOO/bar were a file rather than a directory. The first case was the same in squeeze. The second one is a regression, under squeeze it expanded the variable and added the /: cat /tmp/test/bar/ -- 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