mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-08 12:01:21 +02:00
unposted: include doc tweek to expn.yo from 35071
expn.yo is now essentially the same as commit 6269db8
This commit is contained in:
parent
8421c9e59d
commit
9c3aeef99a
2 changed files with 8 additions and 8 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue