diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-09 09:52:27 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-09 09:52:27 +0000 |
commit | 8a5fb55595d730a0e1fc3a15ff5f69c58e9bdb5b (patch) | |
tree | 76d6b45499ed2b1974fe315f660ef79c5c8116dd /Completion/Base | |
parent | 6626f6dc864341f46001f63761a5ed8510a75f90 (diff) | |
download | zsh-8a5fb55595d730a0e1fc3a15ff5f69c58e9bdb5b.tar.gz zsh-8a5fb55595d730a0e1fc3a15ff5f69c58e9bdb5b.tar.xz zsh-8a5fb55595d730a0e1fc3a15ff5f69c58e9bdb5b.zip |
option name clash in _arguments (11273)
Diffstat (limited to 'Completion/Base')
-rw-r--r-- | Completion/Base/_argument_sets | 2 | ||||
-rw-r--r-- | Completion/Base/_arguments | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Base/_argument_sets b/Completion/Base/_argument_sets index ad59effdc..5218fef69 100644 --- a/Completion/Base/_argument_sets +++ b/Completion/Base/_argument_sets @@ -20,7 +20,7 @@ ocontext=() while true; do end=$argv[(i)-] - _arguments -M xor "$1" "$all[@]" "${(@)argv[2,end-1]}" + _arguments -m xor "$1" "$all[@]" "${(@)argv[2,end-1]}" r=$? oopt_args=( "$oopt_args[@]" "${(kv)opt_args}" ) diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index 7be7bef8c..0637b2cd5 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -150,13 +150,13 @@ fi multi=(-i) subopts=() -while [[ "$1" = -(O*|C|M*) ]]; do +while [[ "$1" = -(O*|C|m*) ]]; do case "$1" in -C) usecc=yes; shift ;; -O) subopts=( "${(@P)2}" ); shift 2 ;; -O*) subopts=( "${(@P)1[3,-1]}" ); shift ;; - -M) ismulti=yes multi=(-I "$2" "$3"); shift 3 ;; - -M*) ismulti=yes multi=(-I "${1[3,-1]}" "$2"); shift 2 ;; + -m) ismulti=yes multi=(-I "$2" "$3"); shift 3 ;; + -m*) ismulti=yes multi=(-I "${1[3,-1]}" "$2"); shift 2 ;; esac done |