mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-07 23:51:14 +02:00
11618: Fix bad shift.
This commit is contained in:
parent
b6cf1f3303
commit
7a3ca7a673
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
2000-05-28 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 11618: Completion/Base/_arguments: Fix bad shift.
|
||||
|
||||
2000-05-28 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
|
||||
|
||||
* 11616: Src/Modules/zftp.c: configure test for netinet/in_systm.h
|
||||
|
|
|
@ -285,7 +285,7 @@ if (( $# )) && comparguments -i "$autod" "$@"; then
|
|||
|
||||
# Otherwise we call it with the description-arguments.
|
||||
|
||||
eval "action=( $action )"
|
||||
set -A action ${=~action}
|
||||
while _next_label "$subc" expl "$descr"; do
|
||||
"$action[1]" "$subopts[@]" "$expl[@]" "${(@)action[2,-1]}"
|
||||
done
|
||||
|
@ -293,9 +293,9 @@ if (( $# )) && comparguments -i "$autod" "$@"; then
|
|||
fi
|
||||
fi
|
||||
fi
|
||||
shift 1 descrs
|
||||
shift 1 actions
|
||||
shift 1 subcs
|
||||
shift "${#descrs} ? 1 : 0" descrs
|
||||
shift "${#actions} ? 1 : 0" actions
|
||||
shift "${#subcs} ? 1 : 0" subcs
|
||||
done
|
||||
|
||||
if [[ -z "$matched$hasopts" ]] && _requested options &&
|
||||
|
|
Loading…
Reference in a new issue