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:
parent
8855a7b635
commit
3badc3caba
4 changed files with 12 additions and 7 deletions
|
@ -1,5 +1,10 @@
|
||||||
2006-09-30 Clint Adams <clint@zsh.org>
|
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:
|
* 22799: R. Ramkumar: Completion/Linux/Command/_fusermount:
|
||||||
change _fusermount to use _fuse_values and _canonical_paths.
|
change _fusermount to use _fuse_values and _canonical_paths.
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ long=$argv[(I)--]
|
||||||
if (( long )); then
|
if (( long )); then
|
||||||
argv[long]=($fargs --)
|
argv[long]=($fargs --)
|
||||||
else
|
else
|
||||||
set -- $@ $fargs
|
set -- "$@" $fargs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while [[ $1 == -(O*|F*|[CRWsw]) ]]; do
|
while [[ $1 == -(O*|F*|[CRWsw]) ]]; do
|
||||||
|
@ -38,10 +38,10 @@ if [[ $cvalsvar != - ]]; then
|
||||||
fsopt='*-o[specify mount options]:mount option:_fuse_values'
|
fsopt='*-o[specify mount options]:mount option:_fuse_values'
|
||||||
[[ -n $cvalsvar ]] && fsopt+=" -A $cvalsvar"
|
[[ -n $cvalsvar ]] && fsopt+=" -A $cvalsvar"
|
||||||
fsopt+=' mount\ option'
|
fsopt+=' mount\ option'
|
||||||
set -- $@ $fsopt
|
set -- "$@" $fsopt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_arguments -R $opts $@
|
_arguments -R $opts "$@"
|
||||||
|
|
||||||
ret=$?
|
ret=$?
|
||||||
|
|
||||||
|
|
|
@ -44,12 +44,12 @@ fvals=(
|
||||||
'attr_timeout[cache timeout for attributes]:timeout (s)'
|
'attr_timeout[cache timeout for attributes]:timeout (s)'
|
||||||
)
|
)
|
||||||
|
|
||||||
[[ -n $cvalsvar ]] && set -- $@ ${(P)cvalsvar}
|
[[ -n $cvalsvar ]] && set -- "$@" ${(P)cvalsvar}
|
||||||
|
|
||||||
if [[ $# -eq 0 ]]; then
|
if [[ $# -eq 0 ]]; then
|
||||||
set -- 'mount options' $fvals
|
set -- 'mount options' $fvals
|
||||||
else
|
else
|
||||||
set -- $@ $fvals
|
set -- "$@" $fvals
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n $state ]]; then
|
if [[ -n $state ]]; then
|
||||||
|
@ -57,7 +57,7 @@ if [[ -n $state ]]; then
|
||||||
state=
|
state=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_values $opts $@ && ret=0
|
_values $opts "$@" && ret=0
|
||||||
|
|
||||||
if [[ -n $state ]]; then
|
if [[ -n $state ]]; then
|
||||||
compstate[restore]=
|
compstate[restore]=
|
||||||
|
|
|
@ -10,6 +10,6 @@ while read devline; do
|
||||||
desc+=$item
|
desc+=$item
|
||||||
done
|
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
|
return ret
|
||||||
|
|
Loading…
Reference in a new issue