[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 3438a5547a26757856af1beff6ae549fd6fb66d9
Ville Skyttä
ville.skytta at iki.fi
Tue Jan 26 21:34:34 UTC 2010
The following commit has been merged in the master branch:
commit 6328b108a2b48e93b7e5f58016124a6b5c878a57
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Tue Jan 26 23:17:48 2010 +0200
Fix NFS completion if path to showmount contains spaces (Alioth: #312285).
diff --git a/contrib/mount b/contrib/mount
index f9fafb1..d8ba81b 100644
--- a/contrib/mount
+++ b/contrib/mount
@@ -18,8 +18,8 @@ _mount()
if [[ "$cur" == *:* ]]; then
for sm in $(type -P showmount) {,/usr}/{,s}bin/showmount; do
- [ -x $sm ] || continue
- COMPREPLY=( $( compgen -W "$( $sm -e ${cur%%:*} | \
+ [ -x "$sm" ] || continue
+ COMPREPLY=( $( compgen -W "$( "$sm" -e ${cur%%:*} | \
awk 'NR>1 {print $1}' )" -- "${cur#*:}" ) )
return 0
done
--
bash-completion
More information about the Bash-completion-commits
mailing list