about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2024-05-08 09:28:06 +0100
committerPeter Stephenson <p.stephenson@samsung.com>2024-05-08 09:28:06 +0100
commitacdcf9d8542a4461c0fceb98fdfef7380a128f78 (patch)
tree37f0042e90ff1db88d240c806c2cfffd240a5565
parenta66e92918568881af110a3e2e3018b317c054e4a (diff)
downloadzsh-acdcf9d8542a4461c0fceb98fdfef7380a128f78.tar.gz
zsh-acdcf9d8542a4461c0fceb98fdfef7380a128f78.tar.xz
zsh-acdcf9d8542a4461c0fceb98fdfef7380a128f78.zip
52915: be explicit about pattern syntax in conditions
-rw-r--r--ChangeLog5
-rw-r--r--Doc/Zsh/cond.yo6
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index df3f9b73c..d3980ecfe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-05-08  Peter Stephenson  <p.stephenson@samsung.com>
+
+	* 52915: Doc/Zsh/cond.yo: be explicit about behaviour of globbing
+	patterns within conditions.
+
 2024-04-07  Mikael Magnusson  <mikachu@gmail.com>
 
 	* 52878: Src/subst.c: Fix ${foo:^bar} where bar is an associative
diff --git a/Doc/Zsh/cond.yo b/Doc/Zsh/cond.yo
index 000e576d0..db92cc766 100644
--- a/Doc/Zsh/cond.yo
+++ b/Doc/Zsh/cond.yo
@@ -241,7 +241,11 @@ ifnzman(\
 noderef(Filename Generation)\
 )\
 , but there is no special behaviour
-of `tt(/)' nor initial dots, and no glob qualifiers are allowed.
+of `tt(/)' nor initial dot, and the patterns `tt(**/)' and `tt(***/)' behave
+the same as `tt(*/)', in which the `tt(*)' has its standard behaviour
+but may also match further `tt(/)' characters.  Also, no bare glob
+qualifiers are allowed, though the form `((#q)var(...))' is allowed as
+shown above.
 
 In each of the above expressions, if
 var(file) is of the form `tt(/dev/fd/)var(n)',