* [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
* Re: [PATCH] bash-completion/fndmt: curly brace missed
2015-10-02 9:38 [PATCH] bash-completion/fndmt: curly brace missed Alexander Kuleshov
@ 2015-10-02 10:36 ` Karel Zak
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2015-10-02 10:36 UTC (permalink / raw)
To: Alexander Kuleshov; +Cc: util-linux
On Fri, Oct 02, 2015 at 03:38:56PM +0600, Alexander Kuleshov wrote:
> bash-completion/findmnt | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [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