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

22800: put quotes around "$@".

This commit is contained in:
Clint Adams 2006-09-30 21:58:19 +00:00
parent 8855a7b635
commit 3badc3caba
4 changed files with 12 additions and 7 deletions

View file

@ -1,5 +1,10 @@
2006-09-30 Clint Adams <clint@zsh.org>
* 22800: Completion/Linux/Type/_fuse_arguments,
Completion/Linux/Type/_fuse_values,
Completion/Linux/Type/_wakeup_capable_devices:
put quotes around "$@".
* 22799: R. Ramkumar: Completion/Linux/Command/_fusermount:
change _fusermount to use _fuse_values and _canonical_paths.

View file

@ -18,7 +18,7 @@ long=$argv[(I)--]
if (( long )); then
argv[long]=($fargs --)
else
set -- $@ $fargs
set -- "$@" $fargs
fi
while [[ $1 == -(O*|F*|[CRWsw]) ]]; do
@ -38,10 +38,10 @@ if [[ $cvalsvar != - ]]; then
fsopt='*-o[specify mount options]:mount option:_fuse_values'
[[ -n $cvalsvar ]] && fsopt+=" -A $cvalsvar"
fsopt+=' mount\ option'
set -- $@ $fsopt
set -- "$@" $fsopt
fi
_arguments -R $opts $@
_arguments -R $opts "$@"
ret=$?

View file

@ -44,12 +44,12 @@ fvals=(
'attr_timeout[cache timeout for attributes]:timeout (s)'
)
[[ -n $cvalsvar ]] && set -- $@ ${(P)cvalsvar}
[[ -n $cvalsvar ]] && set -- "$@" ${(P)cvalsvar}
if [[ $# -eq 0 ]]; then
set -- 'mount options' $fvals
else
set -- $@ $fvals
set -- "$@" $fvals
fi
if [[ -n $state ]]; then
@ -57,7 +57,7 @@ if [[ -n $state ]]; then
state=
fi
_values $opts $@ && ret=0
_values $opts "$@" && ret=0
if [[ -n $state ]]; then
compstate[restore]=

View file

@ -10,6 +10,6 @@ while read devline; do
desc+=$item
done
_describe -t wakeup-capable-devices 'wakeup capable device' desc $@ && ret=0
_describe -t wakeup-capable-devices 'wakeup capable device' desc "$@" && ret=0
return ret