1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

40107: _mount, _fusermount: fix quoting

This commit is contained in:
Mikael Magnusson 2016-11-03 08:42:34 +01:00
parent 9f605904dd
commit a43e6e2db4
3 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2016-12-06 Mikael Magnusson <mikachu@gmail.com>
* 40107: Completion/Linux/Command/_fusermount,
Completion/Unix/Command/_mount: fix quoting
2016-12-06 Peter Stephenson <p.w.stephenson@ntlworld.com>
* unposted: Config/version.mk: 5.2-test-2.

View file

@ -20,7 +20,7 @@ case "$state" in
_files -/
else
mtpts=(${${${"${(f)$(< /etc/mtab)}"}#* }%% *})
_canonical_paths mounted 'mounted filesystem' $mtpts
_canonical_paths mounted 'mounted filesystem' "${(@g::)mtpts}"
fi
;;
esac

View file

@ -959,9 +959,9 @@ udevordir)
esac
local MATCH MBEGIN MEND
mp_tmp=("${(@qg::)mp_tmp}")
dpath_tmp=( "${(@Mqg::)dev_tmp:#/*}" )
dev_tmp=( "${(@qg::)dev_tmp:#/*}" )
mp_tmp=("${(@g::)mp_tmp}")
dpath_tmp=( "${(@Mg::)dev_tmp:#/*}" )
dev_tmp=( "${(@g::)dev_tmp:#/*}" )
_alternative \
'device-labels:device label:compadd -a dev_tmp' \