[PATCH] bash-completion/fndmt: curly brace missed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux