about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSebastian Gniazdowski <sgniazdowski@gmail.com>2019-12-28 21:11:39 +0000
committerDaniel Shahaf <danielsh@apache.org>2019-12-28 21:11:47 +0000
commit408e75b903c1081387ddb5f679660d62f8d19ba1 (patch)
treeed438d47728acd93f09383bc2b5d7eb8ab23fa7f
parent4a2a15d8dc8d310d537ababc2abba0fe444276a8 (diff)
downloadzsh-408e75b903c1081387ddb5f679660d62f8d19ba1.tar.gz
zsh-408e75b903c1081387ddb5f679660d62f8d19ba1.tar.xz
zsh-408e75b903c1081387ddb5f679660d62f8d19ba1.zip
45150 + 45152: zshexpn: Use a more minimal example in the documentation of (#b).
-rw-r--r--ChangeLog5
-rw-r--r--Doc/Zsh/expn.yo7
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 1d97bd9ef..12c49e2be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-12-28  Sebastian Gniazdowski  <sgniazdowski@gmail.com>
+
+	* 45150 + 45152: Doc/Zsh/expn.yo: zshexpn: Use a more minimal
+	example in the documentation of (#b).
+
 2019-12-27  Daniel Shahaf  <danielsh@apache.org>
 
 	* unposted: Test/B01cd.ztst, Util/ztst-ftplugin.vim,
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index d7147dbd7..d103d6ca3 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -2264,12 +2264,13 @@ parentheses can be referenced.
 
 For example,
 
-example(foo="a string with a message"
-if [[ $foo = (a|an)' '(#b)(*)' '* ]]; then
+example(foo="a_string_with_a_message"
+if [[ $foo = (a|an)_(#b)(*) ]]; then
   print ${foo[$mbegin[1],$mend[1]]}
 fi)
 
-prints `tt(string with a)'.  Note that the first parenthesis is before the
+prints `tt(string_with_a_message)'.
+Note that the first set of parentheses is before the
 tt((#b)) and does not create a backreference.
 
 Backreferences work with all forms of pattern matching other than filename