From 53fcadc1f8a735ee0194ec83bebe1afd6ff14d1c Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Tue, 22 Sep 2015 11:16:32 +0900 Subject: 36578: option in a set has key "set-opt" in $opt_args --- ChangeLog | 5 +++++ Doc/Zsh/compsys.yo | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4a8c0531a..6523ff8bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-09-22 Jun-ichi Takimoto + + * 36578: Doc/Zsh/compsys.yo: option in a mutually exclusive set + has key "set-opt" in $opt_args + 2015-09-21 Peter Stephenson * 36580: Src/Zle/compmatch.c: don't copy empty buffer and check diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index d067795dd..d6b180301 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -3982,6 +3982,11 @@ possible completions. When it contains `tt(-d)' or an argument, the option `tt(-c)' will not be considered. However, after `tt(-a)' both sets will still be considered valid. +If an option in a set appears on the command line, it is stored in the +associative array `tt(opt_args)' with 'var(set)tt(-)var(option)' +as a key. In the example above, a key `tt(set1--c)' is used if the option +`tt(-c)' is on the command line. + If the name given for one of the mutually exclusive sets is of the form `tt(LPAR())var(name)tt(RPAR())' then only one value from each set will ever be completed; more formally, all specifications are mutually -- cgit 1.4.1