1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-06 11:21:22 +02:00

zsh-workers/9198

This commit is contained in:
Tanaka Akira 2000-01-04 14:59:46 +00:00
parent f71a7de56f
commit bf2b2bcce7
3 changed files with 12 additions and 9 deletions

View file

@ -246,13 +246,14 @@ if (( $# )) && comparguments -i "$autod" "$@"; then
# If the action starts with a space, we just call it.
${(e)=~action}
eval "action=( $action )"
"$action[@]"
else
# Otherwise we call it with the description-arguments built above.
action=( $=action )
${(e)action[1]} "$subopts[@]" "$expl[@]" ${(e)~action[2,-1]}
eval "action=( $action )"
"$action[1]" "$subopts[@]" "$expl[@]" "${(@)action[2,-1]}"
fi
fi
fi

View file

@ -130,13 +130,14 @@ if compvalues -i "$@"; then
# If the action starts with a space, we just call it.
${(e)=~action}
eval "action=( $action )"
"$action[@]"
else
# Otherwise we call it with the description-arguments built above.
action=( $=action )
${(e)action[1]} "$subopts[@]" "$expl[@]" ${(e)~action[2,-1]}
eval "action=( $action )"
"$action[1]" "$subopts[@]" "$expl[@]" "${(@)action[2,-1]}"
fi
fi

View file

@ -54,13 +54,14 @@ while _tags; do
# If the action starts with a space, we just call it.
${(e)=~action}
eval "action=( $action )"
"$action[@]"
else
# Otherwise we call it with the description-arguments built above.
action=( $=action )
${(e)action[1]} "$subopts[@]" "$expl[@]" ${(e)~action[2,-1]}
eval "action=( $action )"
"$action[1]" "$subopts[@]" "$expl[@]" "${(@)action[2,-1]}"
fi
fi
done