about summary refs log tree commit diff
path: root/Doc/Zsh/options.yo
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-10-30 12:28:07 +0000
committerPeter Stephenson <pws@zsh.org>2015-10-30 12:28:07 +0000
commit58f4cccb1fbd66b7645178af971cb317cf1a2d7a (patch)
tree14b088261d1970c9a68a1a6d7bdef5069f685f3c /Doc/Zsh/options.yo
parentde9effbce601db7ad7f7f0d0969b70b920b4e371 (diff)
downloadzsh-58f4cccb1fbd66b7645178af971cb317cf1a2d7a.tar.gz
zsh-58f4cccb1fbd66b7645178af971cb317cf1a2d7a.tar.xz
zsh-58f4cccb1fbd66b7645178af971cb317cf1a2d7a.zip
37022: add GLOB_STAR_SHORT option to abbreviate ** and ***
Diffstat (limited to 'Doc/Zsh/options.yo')
-rw-r--r--Doc/Zsh/options.yo15
1 files changed, 15 insertions, 0 deletions
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index fbf65abbc..60379cabc 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -534,6 +534,21 @@ cindex(globbing, of . files)
 item(tt(GLOB_DOTS) (tt(-4)))(
 Do not require a leading `tt(.)' in a filename to be matched explicitly.
 )
+pindex(GLOB_STAR_SHORT)
+pindex(NO_GLOB_STAR_SHORT)
+pindex(GLOBSTARSHORT)
+pindex(NOGLOBSTARSHORT)
+cindex(globbing, short forms)
+cindex(globbing, ** special)
+item(tt(GLOB_STAR_SHORT))(
+When this option is set and the default zsh-style globbing is in
+effect, the pattern `tt(**/*)' can be abbreviated to `tt(**)' and the
+pattern `tt(***/*)' can be abbreviated to tt(***).  Hence `tt(**.c)'
+finds a file ending in tt(.c) in any subdirectory, and `tt(***.c)' does
+the same while also following symbolic links.  A tt(/) immediately
+after the `tt(**)' or `tt(***)' forces the pattern to be treated as the
+unabbreviated form.
+)
 pindex(GLOB_SUBST)
 pindex(NO_GLOB_SUBST)
 pindex(GLOBSUBST)