Skip to contentSkip to conversation

bash-completion/fndmt: curly brace missed

PATCH Applied Alexander Kuleshov 2 participants 2 messages Oct 2, 2015 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bash-completion/fndmt: curly brace missed

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

---
 bash-completion/findmnt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bash-completion/findmnt +1 -1
index d7e06c8..946c22a 100644
@@ -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')
Signature · 1 line
2.6.0
maintainer Applied
#1 lore raw
Quoted 2 lines · Alexander Kuleshov
 bash-completion/findmnt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com