summaryrefslogtreecommitdiff
path: root/contrib/mount
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/mount')
-rw-r--r--contrib/mount2
1 files changed, 1 insertions, 1 deletions
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#*:}" ) )