]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
bash-completion: complete relative path for filenames as well
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 2 Apr 2026 19:49:45 +0000 (15:49 -0400)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Thu, 2 Apr 2026 19:49:45 +0000 (15:49 -0400)
Commit 1a76e3e only helped with the completion of directory
names for relative paths. Let us complete filenames too for
completeness (no pun intended).

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
bash-completion/umount

index 5aea50653ca216c9e1169727d7945bbd73f9dd45..78da1549a4dc309d2fd9f9bd1eca19922847314d 100644 (file)
@@ -89,7 +89,7 @@ _umount_module()
                COMPREPLY=( $( compgen -W '$( _umount_points_list )'  -- "$cur" ) )
        else
                compopt -o filenames
-               COMPREPLY=( $(compgen -o dirnames -- "$cur") )
+               COMPREPLY=( $(compgen -f -- "$cur") )
                return 0
        fi
 }