1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-25 05:10:28 +02:00

make sure caller-supplied explanation takes precedence (10579)

This commit is contained in:
Sven Wischnowsky 2000-04-07 12:43:31 +00:00
parent 424ad9fc1d
commit d779b43f42
4 changed files with 16 additions and 6 deletions

View file

@ -258,8 +258,9 @@ if (( $# )) && comparguments -i "$autod" "$@"; then
# Otherwise we call it with the description-arguments.
eval "action=( $action )"
_all_labels arguments expl "$descr" \
"$action[1]" "$subopts[@]" "${(@)action[2,-1]}"
while _next_label arguments expl "$descr"; do
"$action[1]" "$subopts[@]" "$expl[@]" "${(@)action[2,-1]}"
done
fi
fi
fi

View file

@ -141,8 +141,9 @@ if compvalues -i "$@"; then
# Otherwise we call it with the description-arguments built above.
eval "action=( $action )"
_all_labels arguments expl "$descr" \
"$action[1]" "$subopts[@]" "${(@)action[2,-1]}"
while _next_label arguments expl "$descr"; do
"$action[1]" "$subopts[@]" "$expl[@]" "${(@)action[2,-1]}"
done
fi
fi