From c9e0760f68994a0222f9b17d2c3f4ea0da337b98 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 24 Mar 2000 00:53:26 +0000 Subject: manual/10204 --- Completion/Core/_alternative | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Completion/Core/_alternative') diff --git a/Completion/Core/_alternative b/Completion/Core/_alternative index 482e9db51..3267ffeb7 100644 --- a/Completion/Core/_alternative +++ b/Completion/Core/_alternative @@ -50,13 +50,17 @@ while _tags; do # A string in braces is evaluated. - _loop "${def%%:*}" expl "$descr" eval "$action[2,-2]" + while _try "${def%%:*}" expl "$descr"; do + eval "$action[2,-2]" + done elif [[ "$action" = \ * ]]; then # If the action starts with a space, we just call it. eval "action=( $action )" - _loop "${def%%:*}" expl "$descr" "$action[@]" + while _try "${def%%:*}" expl "$descr"; do + "$action[@]" + done else # Otherwise we call it with the description-arguments built above. -- cgit 1.4.1