diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-23 13:56:22 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-08-23 13:56:22 +0000 |
commit | 7728941317e67dc9ced3356dac7f3ef96180bb01 (patch) | |
tree | ca7a0f307c7722903ee37bb213614921cb264424 /Completion/Base/_long_options | |
parent | d68df717176487c8e9b0da353e232db99aeb36ba (diff) | |
download | zsh-7728941317e67dc9ced3356dac7f3ef96180bb01.tar.gz zsh-7728941317e67dc9ced3356dac7f3ef96180bb01.tar.xz zsh-7728941317e67dc9ced3356dac7f3ef96180bb01.zip |
zsh-workers/7467
Diffstat (limited to 'Completion/Base/_long_options')
-rw-r--r-- | Completion/Base/_long_options | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Base/_long_options b/Completion/Base/_long_options index 716ff8884..f0aa2eaff 100644 --- a/Completion/Base/_long_options +++ b/Completion/Base/_long_options @@ -141,9 +141,9 @@ if [[ "$tmp" != $_lo_cache_cmd ]]; then # First, we get the pattern and the action to use and take them # from the positional parameters. - pattern="${1%%:*}" - descr="${${1#*:}%%:*}" - action="${1#*:*:}" + pattern="${${${(M)1#*[^\\]:}[1,-2]}//\\\\:/:}" + descr="${${${(M)${1#*[^\\]:}#*[^\\]:}[1,-2]}//\\\\:/:}" + action="${${1#*[^\\]:*[^\\]:}//\\\\:/:}" shift # We get all options matching the pattern and take them from the @@ -257,7 +257,7 @@ if [[ "$str" = *\=* ]]; then _description expl "$descr" - if [[ "$action[1]" = (\[*\]|\(*\)) ]]; then + if [[ "$action" = (\[*\]|\(*\)) ]]; then compadd "$expl[@]" - ${=action[2,-2]} elif [[ "$action" = \{*\} ]]; then eval "$action[2,-2]" |