mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-05-19 14:36:04 +02:00
40641: docs: patterns: Add '|' to the overview. Clarify that it short-circuits.
This commit is contained in:
parent
d00931de5c
commit
bf292bde14
|
@ -1,3 +1,8 @@
|
|||
2017-02-28 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 40641: Doc/Zsh/expn.yo, Doc/Zsh/roadmap.yo: docs: patterns:
|
||||
Add '|' to the overview. Clarify that it short-circuits.
|
||||
|
||||
2017-02-26 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 40650: Src/Modules/parameter.c: redo 40508 and 40626 with
|
||||
|
|
|
@ -2110,6 +2110,7 @@ Matches either var(x) or var(y).
|
|||
This operator has lower precedence than any other.
|
||||
The `tt(|)' character
|
||||
must be within parentheses, to avoid interpretation as a pipeline.
|
||||
The alternatives are tried in order from left to right.
|
||||
)
|
||||
item(tt(^)var(x))(
|
||||
(Requires tt(EXTENDED_GLOB) to be set.)
|
||||
|
|
|
@ -139,6 +139,9 @@ startitem()
|
|||
item(tt(**))(
|
||||
for matching over multiple directories
|
||||
)
|
||||
item(tt(|))(
|
||||
for matching either of two alternatives
|
||||
)
|
||||
item(tt(~), tt(^))(
|
||||
the ability to exclude patterns from matching when the tt(EXTENDED_GLOB)
|
||||
option is set
|
||||
|
|
Loading…
Reference in New Issue