Debian Bug report logs -
#600548
Tab completion for mount has extra escape characters when spaces are present
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, LaMont Jones <lamont@debian.org>:
Bug#600548; Package mount.
(Mon, 18 Oct 2010 02:09:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Aaron Barany <akb825@gmail.com>:
New Bug report received and forwarded. Copy sent to LaMont Jones <lamont@debian.org>.
(Mon, 18 Oct 2010 02:09:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: mount
Version: 2.17.2-3.3
Severity: minor
Whenever you type the mount command in the terminal and tab-complete a mount
point with spaces, extra escape characters are present. For example:
mount /media/Shared\\\ Files
Notice how there's 2 additional escape characters, which would cause mount to
fail unless I go back and edit it, which removes the point of tab completion.
Other commands, such as ls and even umount work properly, so that leads me to
believe whatever configuration is set up for the tab completion is wrong for
mount.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages mount depends on:
ii libblkid1 2.17.2-3.3 block device id library
ii libc6 2.11.2-6 Embedded GNU C Library: Shared lib
ii libselinux1 2.0.96-1 SELinux runtime shared libraries
ii libsepol1 2.0.41-1 SELinux library for manipulating b
ii libuuid1 2.17.2-3.3 Universally Unique ID library
mount recommends no packages.
Versions of packages mount suggests:
ii nfs-common 1:1.2.2-4 NFS support files common to client
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, LaMont Jones <lamont@debian.org>:
Bug#600548; Package mount.
(Mon, 18 Oct 2010 06:27:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Aaron Barany <akb825@gmail.com>:
Extra info received and forwarded to list. Copy sent to LaMont Jones <lamont@debian.org>.
(Mon, 18 Oct 2010 06:27:03 GMT) (full text, mbox, link).
Message #10 received at 600548@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
After a little more experimentation, it appears that it only adds extra
escape characters if mount (and unmount) are preceded by sudo. The only
reason why umount worked for my test in my original message is because I
didn't specify sudo. Adding sudo in front of other commands, such as cat and
ls still works with tab completion, so it still seems to be limited to mount
and umount.
On Sun, Oct 17, 2010 at 7:06 PM, Aaron Barany <akb825@gmail.com> wrote:
> Package: mount
> Version: 2.17.2-3.3
> Severity: minor
>
> Whenever you type the mount command in the terminal and tab-complete a
> mount
> point with spaces, extra escape characters are present. For example:
>
> mount /media/Shared\\\ Files
>
> Notice how there's 2 additional escape characters, which would cause mount
> to
> fail unless I go back and edit it, which removes the point of tab
> completion.
> Other commands, such as ls and even umount work properly, so that leads me
> to
> believe whatever configuration is set up for the tab completion is wrong
> for
> mount.
>
>
>
> -- System Information:
> Debian Release: squeeze/sid
> APT prefers testing
> APT policy: (500, 'testing')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
>
> Versions of packages mount depends on:
> ii libblkid1 2.17.2-3.3 block device id library
> ii libc6 2.11.2-6 Embedded GNU C Library: Shared
> lib
> ii libselinux1 2.0.96-1 SELinux runtime shared
> libraries
> ii libsepol1 2.0.41-1 SELinux library for
> manipulating b
> ii libuuid1 2.17.2-3.3 Universally Unique ID library
>
> mount recommends no packages.
>
> Versions of packages mount suggests:
> ii nfs-common 1:1.2.2-4 NFS support files common to
> client
>
> -- no debconf information
>
[Message part 2 (text/html, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org:
Bug#600548; Package mount.
(Mon, 18 Oct 2010 12:24:38 GMT) (full text, mbox, link).
Acknowledgement sent
to LaMont Jones <lamont@debian.org>:
Extra info received and forwarded to list.
(Mon, 18 Oct 2010 12:24:38 GMT) (full text, mbox, link).
Message #15 received at 600548@bugs.debian.org (full text, mbox, reply):
On Sun, Oct 17, 2010 at 11:25:13PM -0700, Aaron Barany wrote:
> After a little more experimentation, it appears that it only adds extra
> escape characters if mount (and unmount) are preceded by sudo. The only
> reason why umount worked for my test in my original message is because I
> didn't specify sudo. Adding sudo in front of other commands, such as cat and
> ls still works with tab completion, so it still seems to be limited to mount
> and umount.
Not sure what is delivering tab-completion logic for mount, but it's not the
mount package. What shell are you using?
lamont
Information forwarded
to debian-bugs-dist@lists.debian.org, LaMont Jones <lamont@debian.org>:
Bug#600548; Package mount.
(Mon, 18 Oct 2010 18:09:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Aaron Barany <akb825@gmail.com>:
Extra info received and forwarded to list. Copy sent to LaMont Jones <lamont@debian.org>.
(Mon, 18 Oct 2010 18:09:03 GMT) (full text, mbox, link).
Message #20 received at 600548@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
I'm using the standard bash shell. Many programs seems to have rather
complex tab completion behavior, including command line options and
additional arguments to command line options. For example, after "apt-get
install" it knows the next argument is a package name. I figured that there
was a configuration file for those tools to describe that behavior, rather
than being built into the shell for a particular set of tools, especially
from the variety of tools that have that behavior. I guess it's also
possible that most programs do have such a configuration file, but mount and
umount don't, and the default behavior with sudo is wrong.
On Mon, Oct 18, 2010 at 5:23 AM, LaMont Jones <lamont@debian.org> wrote:
> On Sun, Oct 17, 2010 at 11:25:13PM -0700, Aaron Barany wrote:
> > After a little more experimentation, it appears that it only adds extra
> > escape characters if mount (and unmount) are preceded by sudo. The only
> > reason why umount worked for my test in my original message is because I
> > didn't specify sudo. Adding sudo in front of other commands, such as cat
> and
> > ls still works with tab completion, so it still seems to be limited to
> mount
> > and umount.
>
> Not sure what is delivering tab-completion logic for mount, but it's not
> the
> mount package. What shell are you using?
>
> lamont
>
[Message part 2 (text/html, inline)]
Bug reassigned from package 'mount' to 'bash-completion'.
Request was from Phillip Susi <psusi@ubuntu.com>
to control@bugs.debian.org.
(Tue, 11 Feb 2014 01:12:05 GMT) (full text, mbox, link).
No longer marked as found in versions util-linux/2.17.2-3.3.
Request was from Phillip Susi <psusi@ubuntu.com>
to control@bugs.debian.org.
(Tue, 11 Feb 2014 01:12:05 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 10:08:38 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.