@@ -45,7 +45,7 @@ _comp_cmd_umount__linux_fstab_unescape()
45
45
# Reads a file from stdin in the linux fstab(5) format; as used by /etc/fstab
46
46
# and /proc/mounts. With 1st arg -L, look for entries by label.
47
47
# shellcheck disable=SC2120
48
- _comp_cmd__umount_linux_fstab ()
48
+ _comp_cmd_umount__linux_fstab ()
49
49
{
50
50
COMPREPLY=()
51
51
@@ -56,12 +56,12 @@ _comp_cmd__umount_linux_fstab()
56
56
if [[ ${1-} == -L ]]; then
57
57
local fs_label=${fs_spec/# LABEL=/ }
58
58
if [[ $fs_label != " $fs_spec " ]]; then
59
- __comp_cmd_umount__linux_fstab_unescape fs_label
59
+ _comp_cmd_umount__linux_fstab_unescape fs_label
60
60
COMPREPLY+=(" $fs_label " )
61
61
fi
62
62
else
63
- __comp_cmd_umount__linux_fstab_unescape fs_spec
64
- __comp_cmd_umount__linux_fstab_unescape fs_file
63
+ _comp_cmd_umount__linux_fstab_unescape fs_spec
64
+ _comp_cmd_umount__linux_fstab_unescape fs_file
65
65
[[ $fs_spec == * /* ]] && COMPREPLY+=(" $fs_spec " )
66
66
[[ $fs_file == * /* ]] && COMPREPLY+=(" $fs_file " )
67
67
fi
@@ -131,7 +131,7 @@ _comp_cmd_umount()
131
131
if [[ -r /proc/mounts ]]; then
132
132
# Linux /proc/mounts is properly quoted. This is important when
133
133
# unmounting usb devices with pretty names.
134
- _comp_cmd__umount_linux_fstab < /proc/mounts
134
+ _comp_cmd_umount__linux_fstab < /proc/mounts
135
135
else
136
136
local IFS=$' \n '
137
137
COMPREPLY=($( compgen -W ' $(mount | cut -d" " -f 3)' -- " $cur " ) )
0 commit comments