mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-05-13 02:56:18 +02:00
unposted: Add details about ${(*)...} expansion
This commit is contained in:
parent
276020522e
commit
fc1ae21fda
|
@ -1,5 +1,7 @@
|
|||
2022-04-30 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* unposted: Doc/Zsh/expn.yo, Etc/NEWS: Details about ${(*)...}
|
||||
|
||||
* 50150: Src/Modules/stat.c: Filenames need unmetafy for printing
|
||||
|
||||
* 50149: Etc/BUGS, Src/builtin.c, Src/jobs.c: Remove all =(...)
|
||||
|
|
|
@ -1498,8 +1498,9 @@ form using `tt(%%)' will remove the same matches as for `tt(##)' in reverse
|
|||
order.
|
||||
)
|
||||
item(tt(*))(
|
||||
pindex(EXTENDED_GLOB, enable)
|
||||
Enable tt(EXTENDED_GLOB) for substitution via tt(${)...tt(/)...tt(}) or
|
||||
tt(${)...tt(//)...tt(}).
|
||||
tt(${)...tt(//)...tt(}). Note that `tt(**)' does not disable extendedglob.
|
||||
)
|
||||
item(tt(B))(
|
||||
Include the index of the beginning of the match in the result.
|
||||
|
|
6
NEWS
6
NEWS
|
@ -46,6 +46,12 @@ of CLOBBER for empty files only. It is disabled by default.
|
|||
A (-) expansion flag was added. It works like (n) but correctly sorts
|
||||
negative numbers.
|
||||
|
||||
The (*) expansion flag enables EXTENDED_GLOB for pattern matching.
|
||||
For example, ${(*)sample/(#b)*(pat)*/${match[1]}} uses backreferences
|
||||
even if EXTENDED_GLOB is not otherwise set. However, this does not
|
||||
descend into nested exapansions, and doubling as (**) does not disable
|
||||
EXTENDED_GLOB.
|
||||
|
||||
The compinit function learnt a -w option to explain why compdump runs.
|
||||
When run without the -i or -u options and compaudit discovers security
|
||||
issues, answering "y" to the "Ignore insecure ..." prompt removes the
|
||||
|
|
Loading…
Reference in New Issue