From 7a3ca7a673d98fcbe50c192cba6165d17505e394 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sun, 28 May 2000 21:10:13 +0000 Subject: 11618: Fix bad shift. --- Completion/Base/_arguments | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Completion') diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index b605605da..11c62705f 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -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 && -- cgit 1.4.1