summary refs log tree commit diff
diff options
context:
space:
mode:
authorJun T <takimoto-j@kba.biglobe.ne.jp>2015-05-12 15:39:18 +0900
committerJun T <takimoto-j@kba.biglobe.ne.jp>2015-05-12 15:39:18 +0900
commit9c3aeef99a64c44e5a37170c9440c591f223bb4a (patch)
tree5a0f323189ac02d34b30e8e4528ba2f65e39ba04
parent8421c9e59dfc9a3abc71a060f8577c342f81a007 (diff)
downloadzsh-9c3aeef99a64c44e5a37170c9440c591f223bb4a.tar.gz
zsh-9c3aeef99a64c44e5a37170c9440c591f223bb4a.tar.xz
zsh-9c3aeef99a64c44e5a37170c9440c591f223bb4a.zip
unposted: include doc tweek to expn.yo from 35071
expn.yo is now essentially the same as commit 6269db8
-rw-r--r--ChangeLog4
-rw-r--r--Doc/Zsh/expn.yo12
2 files changed, 8 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index cb073f93d..491fab825 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
 2015-05-12  Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
 
-	* 35086: Doc/Zsh/expn.yo: reapply 35067 which has been
-	mistakenly reverted by 35075
+	* 35086: Doc/Zsh/expn.yo: reapply 35067 (with 35071) which
+	has been mistakenly reverted by 35075
 
 2015-05-12  Daniel Hahler  <git@thequod.de>
 
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index 6bb0b4ada..afd6b1ff9 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -1023,15 +1023,15 @@ Quoting using one of the tt(q) family of flags does not work
 for this purpose since quotes are not stripped from non-pattern
 characters by tt(GLOB_SUBST).  In other words,
 
-example(foo='a\ b'
-[[ 'a b' = ${~foo} ]])
+example(pattern=${(q)str}
+[[ $str = ${~pattern} ]])
 
-fails, whereas
+works if tt($str) is tt('a*b') but not if it is tt('a b'), whereas
 
-example(foo='a\*b'
-[[ 'a*b' = ${~foo} ]])
+example(pattern=${(b)str}
+[[ $str = ${~pattern} ]])
 
-succeeds.  The tt(b) flag ensures the correct quoting.
+is always true for any possible value of tt($str).
 )
 item(tt(Q))(
 Remove one level of quotes from the resulting words.