Fix NFS completion if path to showmount contains spaces (Alioth: #312285).
This commit is contained in:
parent
dc8af65161
commit
6328b108a2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user