Package: bash
Version: 3.2-4
Severity: minor

Hi,

this bug is rather known (seen it on the ubuntu bts), see this 
demonstration:

[EMAIL PROTECTED]:/tmp/Test_Verzeichnis2$ sudo mount -o loop test
test datei.iso  test_datei.iso  
[EMAIL PROTECTED]:/tmp/Test_Verzeichnis2$ sudo mount -o loop test\ dgrep: 
Trailing backslash
grep: Trailing backslash

[EMAIL PROTECTED]:/tmp/Test_Verzeichnis2$ mount test\ datei.iso 
[EMAIL PROTECTED]:/tmp/Test_Verzeichnis2$ 

I tried to let bash autocomplete after I typed test\ d...
So as it seems, it will not work correctly when the file to complete 
contains a whitespace AND if I use sudo.
There is a note in /etc/bash_completion about sudo:

# A meta-command completion function for commands like sudo(8), which 
need to
# first complete on a command, then complete according to that command's 
own
# completion definition - currently not quite foolproof (e.g. mount and 
umount
# don't work properly), but still quite useful.

yeah, not so foolproof ;) it would be nice if someone would have an idea 
how to improve the really nice completion feature there.

greetings
Michael

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

Kernel: Linux 2.6.24-etchnhalf.1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bash depends on:
ii  base-files                4.0.5          Debian base system miscellaneous f
ii  debianutils               2.30           Miscellaneous utilities specific t
ii  libc6                     2.7-13         GNU C Library: Shared libraries
ii  libncurses5               5.6+20080925-1 shared libraries for terminal hand

Versions of packages bash recommends:
pn  bash-completion               <none>     (no description available)

Versions of packages bash suggests:
pn  bash-doc                      <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to