[Bash-completion-commits] [SCM] bash-completion branch, master, updated. ebdd9cefdc33a80aa51192df66e24616ddb4a9b2
Crestez Dan Leonard
cdleonard at gmail.com
Tue Feb 9 13:57:43 UTC 2010
The following commit has been merged in the master branch:
commit aac11de466f9a22312329e91769d0c84ae347407
Author: Crestez Dan Leonard <cdleonard at gmail.com>
Date: Tue Feb 2 11:17:33 2010 +0200
Fix nfs mount completion if the path to showmount contains a space.
diff --git a/contrib/mount b/contrib/mount
index d8ba81b..1f0d8a4 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#*:}" ) )
--
bash-completion
More information about the Bash-completion-commits
mailing list