From 9d18eb9c7a88fb2af3f07beb7d2275126e32b8e4 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 9 Sep 1999 14:33:42 +0000 Subject: zsh-workers/7750 --- Completion/Base/_arguments | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index 6597c531f..591f49a6a 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -57,6 +57,8 @@ if [[ "$*" != "$_args_cache_descr" ]]; then # We have to build the long-option cache anew, get the `-i' and # `-s' options. + set -- "${(@)argv[nth+1,-1]}" + iopts=() sopts=() while [[ "$1" = -[is]* ]]; do @@ -105,7 +107,7 @@ if [[ "$*" != "$_args_cache_descr" ]]; then # ... and add "same" options while (( $#sopts )); do - lopts=( $lopts ${opts/$sopts[1]/$sopts[2]} ) + lopts=( $lopts ${lopts/$sopts[1]/$sopts[2]} ) shift 2 sopts done -- cgit 1.4.1