From fc1ae21fdac97399163b93e26818fadebcc11cf7 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sat, 30 Apr 2022 12:29:52 -0700 Subject: unposted: Add details about ${(*)...} expansion --- NEWS | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 1ab4f0649..d7a817c1e 100644 --- a/NEWS +++ b/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 -- cgit 1.4.1