mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-30 19:20:53 +02:00
zsh-workers/7750
This commit is contained in:
parent
825960a988
commit
9d18eb9c7a
1 changed files with 3 additions and 1 deletions
|
@ -57,6 +57,8 @@ if [[ "$*" != "$_args_cache_descr" ]]; then
|
||||||
# We have to build the long-option cache anew, get the `-i' and
|
# We have to build the long-option cache anew, get the `-i' and
|
||||||
# `-s' options.
|
# `-s' options.
|
||||||
|
|
||||||
|
set -- "${(@)argv[nth+1,-1]}"
|
||||||
|
|
||||||
iopts=()
|
iopts=()
|
||||||
sopts=()
|
sopts=()
|
||||||
while [[ "$1" = -[is]* ]]; do
|
while [[ "$1" = -[is]* ]]; do
|
||||||
|
@ -105,7 +107,7 @@ if [[ "$*" != "$_args_cache_descr" ]]; then
|
||||||
# ... and add "same" options
|
# ... and add "same" options
|
||||||
|
|
||||||
while (( $#sopts )); do
|
while (( $#sopts )); do
|
||||||
lopts=( $lopts ${opts/$sopts[1]/$sopts[2]} )
|
lopts=( $lopts ${lopts/$sopts[1]/$sopts[2]} )
|
||||||
shift 2 sopts
|
shift 2 sopts
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue