about summary refs log tree commit diff
path: root/Doc/Zsh/expn.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/expn.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/expn.yo')
-rw-r--r--Doc/Zsh/expn.yo12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index 5ea8610f2..20e0c8d35 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -2381,6 +2381,18 @@ follow symbolic links; the alternative form `tt(***/)' does, but is
 otherwise identical.  Neither of these can be combined with other forms of
 globbing within the same path segment; in that case, the `tt(*)'
 operators revert to their usual effect.
+
+Even shorter forms are available when the option tt(GLOB_STAR_SHORT) is
+set.  In that case if no tt(/) immediately follows a tt(**) or tt(***)
+they are treated as if both a tt(/) plus a further tt(*) are present.
+Hence:
+
+example(setopt GLOBSTARSHORT
+ls **.c)
+
+is equivalent to
+
+example(ls **/*.c)
 subsect(Glob Qualifiers)
 cindex(globbing, qualifiers)
 cindex(qualifiers, globbing)