[Bash-completion-devel] Bug#638227: bash-completion: fails to escape or quote filenames with shell metacharacters in their names

Brian Minton brian at minton.name
Wed Aug 17 20:24:37 UTC 2011


Package: bash-completion
Version: 1:1.3-1
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

I have a file with shell metacharacters such as "&" and "?" in the name.
Formerly, bash-completion would escape or quote the file name, but now
the entire file name with no escaping or quoting is placed on the
command line.  This causes the command line to be invalid, or not the
desired action. 

Example:

bminton at bminton:~/download/temp$ ls -la
total 3212
drwxr-xr-x 2 bminton bminton      112 Aug 17 16:15 ./
drwxrwx--x 9 bminton www-data    8192 Aug 17 16:15 ../
- -rw-r--r-- 1 bminton bminton  3275093 Aug 17 15:56 wxWidgets-2.9.2.tar.bz2?r=http:%2F%2Fwww.wxwidgets.org%2Fdownloads%2F&ts=1313610850&use_mirror=iweb
bminton at bminton:~/download/temp$ rm ./wxWidgets-2.9.2.tar.bz2?r=http:%2F%2Fwww.wxwidgets.org%2Fdownloads%2F&ts=1313610850&use_mirror=iweb ^C
bminton at bminton:~/download/temp$ 

- -- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.35.5 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages bash-completion depends on:
ii  bash                          4.1-3      The GNU Bourne Again SHell

bash-completion recommends no packages.

bash-completion suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEAREDAAYFAk5MI38ACgkQ2/alund99IeFFwCfRo95m6HZrWV/w8jlcILVhOvJ
eIUAniGRUNi7XK13KCuwL6mimfPUkhXs
=d9fl
-----END PGP SIGNATURE-----





More information about the Bash-completion-devel mailing list