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:
parent
f71a7de56f
commit
bf2b2bcce7
3 changed files with 12 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue