]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
bash-completion: umount explicitly needs gawk
authorWolfram Sang <wsa@the-dreams.de>
Tue, 28 Apr 2020 07:13:15 +0000 (09:13 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 29 Apr 2020 10:27:14 +0000 (12:27 +0200)
gensub() is a gawk extension, so use it explicitly. Otherwise users will
get an error if their 'awk' defaults to something else.

Fixes: 3ebfc8d37 ("bash-completion: umount support relative path and ~ as home shorthands")
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
bash-completion/umount

index 7fc2bd3765af3073a2a3967af77cb8143d99c416..0949688f93ef6b8b14b746fca44845333619ba0f 100644 (file)
@@ -51,7 +51,7 @@ _umount_module()
 
        local oldifs=$IFS
        IFS=$'\n'
-       COMPREPLY=( $( compgen -W "$(findmnt -lno TARGET | awk \
+       COMPREPLY=( $( compgen -W "$(findmnt -lno TARGET | gawk \
                '{
                        if ($0 ~ ENVIRON["HOME"]) {
                                homeless = $0