about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-10-14 19:01:41 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-10-14 19:01:41 +0000
commit8dc39360c92252207c9287e63d2f7bb457a77aaf (patch)
treeece269ed3cccc1bb094d7bbfc594467d0aa1c893 /Doc
parentc70e44c9bd770b7ca5959841faa0857cc9496d8e (diff)
downloadzsh-8dc39360c92252207c9287e63d2f7bb457a77aaf.tar.gz
zsh-8dc39360c92252207c9287e63d2f7bb457a77aaf.tar.xz
zsh-8dc39360c92252207c9287e63d2f7bb457a77aaf.zip
29820: _pick_variant -b to match builtin
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/compsys.yo8
1 files changed, 7 insertions, 1 deletions
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index d3d272c10..e07ac0e9e 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -4387,7 +4387,9 @@ tt(ambiguous), tt(special-dirs), tt(list-suffixes) and tt(file-sort)
 described above.
 )
 findex(_pick_variant)
-item(tt(_pick_variant [ tt(-c) var(command) ] [ tt(-r) var(name) ] var(label)tt(=)var(pattern) ... var(label) [ var(args) ... ]))(
+xitem(tt(_pick_variant) [ tt(-b) var(builtin-label) ] [ tt(-c)
+var(command) ] [ tt(-r) var(name) ])
+item(   var(label)tt(=)var(pattern) ... var(label) [ var(args) ... ])(
 This function is used to resolve situations where a single command name
 requires more than one type of handling, either because it
 has more than one variant or because there is a name clash between two
@@ -4403,6 +4405,10 @@ tt(...)' contains var(pattern), then tt(label) is selected as the label
 for the command variant.  If none of the patterns match, the final
 command label is selected and status 1 is returned.
 
+If the `tt(-b) var(builtin-label)' is given, the command is tested to
+see if it is provided as a shell builtin, possibly autoloaded; if so,
+the label var(builtin-label) is selected as the label for the variant.
+
 If the `tt(-r) var(name)' is given, the var(label) picked is stored in
 the parameter named var(name).