From aac11de466f9a22312329e91769d0c84ae347407 Mon Sep 17 00:00:00 2001 From: Crestez Dan Leonard Date: Tue, 2 Feb 2010 11:17:33 +0200 Subject: Fix nfs mount completion if the path to showmount contains a space. --- contrib/mount | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/mount b/contrib/mount index d8ba81bc..1f0d8a4a 100644 --- a/contrib/mount +++ b/contrib/mount @@ -17,7 +17,7 @@ _mount() [[ "$cur" == \\ ]] && cur="/" if [[ "$cur" == *:* ]]; then - for sm in $(type -P showmount) {,/usr}/{,s}bin/showmount; do + for sm in "$(type -P showmount)" {,/usr}/{,s}bin/showmount; do [ -x "$sm" ] || continue COMPREPLY=( $( compgen -W "$( "$sm" -e ${cur%%:*} | \ awk 'NR>1 {print $1}' )" -- "${cur#*:}" ) ) -- cgit v1.2.1