* [PATCH] bash-completion/fndmt: curly brace missed
@ 2015-10-02 9:38 Alexander Kuleshov
2015-10-02 10:36 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Kuleshov @ 2015-10-02 9:38 UTC (permalink / raw)
To: util-linux; +Cc: Alexander Kuleshov
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bash-completion/findmnt b/bash-completion/findmnt
index d7e06c8..946c22a 100644
--- a/bash-completion/findmnt
+++ b/bash-completion/findmnt
@@ -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')
--
2.6.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-02 10:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-02 9:38 [PATCH] bash-completion/fndmt: curly brace missed Alexander Kuleshov
2015-10-02 10:36 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox