]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
bash-completion: curly brace missed for findmnt
authorAlexander Kuleshov <kuleshovmail@gmail.com>
Fri, 2 Oct 2015 09:38:56 +0000 (15:38 +0600)
committerKarel Zak <kzak@redhat.com>
Mon, 2 Nov 2015 09:17:58 +0000 (10:17 +0100)
This patch provides fix for bash-completion/fndmt script. There
is curly brace missed in the completion generation for the -M/--mountpoint
option.

In other way we will get following messages:

bash: /etc/bash_completion.d/findmnt: line 91: unexpected EOF while looking for matching `)'
bash: /etc/bash_completion.d/findmnt: line 141: syntax error: unexpected end of file

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
bash-completion/findmnt

index d7e06c8d40cc79c6f62be67358edfa704e4ce479..946c22a98c699ccca8db8ecc9cf88488f9593b50 100644 (file)
@@ -88,7 +88,7 @@ _findmnt_module()
                '-M'|'--mountpoint')
                        local IFS=$'\n'
                        compopt -o filenames
-                       COMPREPLY=( $(compgen -o dirnames -- ${cur:-"/") )
+                       COMPREPLY=( $(compgen -o dirnames -- ${cur:-"/"}) )
                        return 0
                        ;;
                '-h'|'--help'|'-V'|'--version')