Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tab completion of commands in directories with spaces adds extra backslashes.

0 views
Skip to first unread message

Adam Buchbinder

unread,
Oct 27, 2009, 9:29:16 AM10/27/09
to bug-...@gnu.org, ba...@packages.debian.org
Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -D$
uname output: Linux adam-linux 2.6.28-15-generic #49-Ubuntu SMP Tue Aug
18 18:40:08 UTC 2009 i686 GNU/Linux
Machine Type: i486-pc-linux-gnu

Bash Version: 3.2
Patch Level: 48
Release Status: release

Description:
When tab-completing the name of a command, if that command is
inside a directory with spaces in its name, the tab completion
will add extra backslashes.

Repeat-By:
$ mkdir ~/'x y'/'z w'
$ ~/x<TAB><TAB>

After this, the command line will look like this:
$ ~/x\\\ y/z\ w
It should look like this:
$ ~/x\ y/z\ w


Chet Ramey

unread,
Oct 27, 2009, 4:42:13 PM10/27/09
to adam.bu...@gmail.com, bug-...@gnu.org, ba...@packages.debian.org, ch...@po.cwru.edu
> Machine Type: i486-pc-linux-gnu
>
> Bash Version: 3.2
> Patch Level: 48
> Release Status: release
>
> Description:
> When tab-completing the name of a command, if that command is
> inside a directory with spaces in its name, the tab completion
> will add extra backslashes.

This is fixed in bash-4.0.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU ch...@case.edu http://cnswww.cns.cwru.edu/~chet/


0 new messages