mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-05-20 06:56:05 +02:00
35086: reapply a hunk from 35067 for expn.yo
the hunk has been mistakenly reverted by 35075
This commit is contained in:
parent
b884853756
commit
8421c9e59d
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
||||
2015-05-12 Daniel Hahler <git@thequod.de>
|
||||
|
||||
* 35060 + 35072: Completion/Unix/Command/_git: completion: git: split
|
||||
|
|
|
@ -1014,6 +1014,25 @@ form of single quoting is used that only quotes the string if needed to
|
|||
protect special characters. Typically this form gives the most readable
|
||||
output.
|
||||
)
|
||||
item(tt(b))(
|
||||
Quote with backslashes only characters that are special to pattern
|
||||
matching. This is useful when the contents of the variable are to be
|
||||
tested using tt(GLOB_SUBST), including the tt(${~)var(...)tt(}) switch.
|
||||
|
||||
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} ]])
|
||||
|
||||
fails, whereas
|
||||
|
||||
example(foo='a\*b'
|
||||
[[ 'a*b' = ${~foo} ]])
|
||||
|
||||
succeeds. The tt(b) flag ensures the correct quoting.
|
||||
)
|
||||
item(tt(Q))(
|
||||
Remove one level of quotes from the resulting words.
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue