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
|
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
|
[ -x "$sm" ] || continue
|
||||||
COMPREPLY=( $( compgen -W "$( $sm -e ${cur%%:*} | \
|
COMPREPLY=( $( compgen -W "$( "$sm" -e ${cur%%:*} | \
|
||||||
awk 'NR>1 {print $1}' )" -- "${cur#*:}" ) )
|
awk 'NR>1 {print $1}' )" -- "${cur#*:}" ) )
|
||||||
return 0
|
return 0
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user