Package: mount
Version: 2.29.2-1
Severity: wishlist

Dear Maintainer,

   * What led up to the situation?

A directory in the current bash working directory was being used as a
mountpoint for a block device. I attempted to unmount it by using, for
example, 'sudo umount MyMountPoi<TAB>' or 'sudo umount ./MyMountPoi<TAB>'. The 
name was not autocompleted
and no autocomplete suggestions are given. Autocompletion does work,
however, for absolute paths to either the block device that was mounted,
or its mount point (as expected).

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

I attempted to unmount a block device from a mountpoint by specifying a
relative path to the mountpoint as the {directory} argument in the 'umount' 
command.

   * What was the outcome of this action?

Bash autocompletion did not work for the relative path.

   * What outcome did you expect instead?

Bash autocompletion does work for the relative path.

I know this problem has existed for at least 2 or 3 years now, and it's
not really a big issue. It would just be nice if path autocompletion was
a little more consistent in one of UNIX's essential utilities.

External references of this issue (in other shells besides bash):
https://github.com/zimframework/zim/issues/3
https://unix.stackexchange.com/questions/318290/how-can-i-tab-complete-umount-restricting-to-volumes-in-a-specific-directory
http://zsh-users.zsh.narkive.com/i7HfOYLH/zsh-completion-for-umount

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (1000, 'testing'), (1000, 'stable'), (750, 'stable'), (50, 
'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mount depends on:
ii  libblkid1      2.29.2-1
ii  libc6          2.24-12
ii  libmount1      2.29.2-1
ii  libselinux1    2.6-3+b1
ii  libsmartcols1  2.29.2-1
ii  libudev1       232-25

mount recommends no packages.

Versions of packages mount suggests:
pn  nfs-common  <none>

-- no debconf information

Reply via email to