[Bash-completion-devel] Bug#549284: matching fails to expand after a space in the path
Joseph Nahmias
joe at nahmias.net
Fri Oct 2 02:57:07 UTC 2009
Package: bash-completion
Version: 1:1.0-3
Severity: normal
Hi,
As the subject says, bash-completion is failing to expand files or
directories after the path has an embedded space.
Here's a couple of simple test-cases that fail:
$ mkdir /tmp/foo\ bar
$ touch /tmp/foo\ bar/blah
$ cat /tmp/foo\ bar/b[TAB]
## Doesn't expand to /tmp/foo\ bar/blah !!
## NB: compgen doesn't have this problem...
$ compgen -f /tmp/foo\ bar/b
/tmp/foo bar/blah
$ mkdir -p /tmp/a\ b/cde
$ cd /tmp/a\ b/c[TAB]
## Doesn't expand to /tmp/a\ b/cde !!
## NB: compgen doesn't have this problem...
$ compgen -d /tmp/a\ b/c
/tmp/a b/cde
Thanks,
--Joe
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'oldstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages bash-completion depends on:
ii bash 4.0-4 The GNU Bourne Again SHell
bash-completion recommends no packages.
bash-completion suggests no packages.
-- no debconf information
More information about the Bash-completion-devel
mailing list