Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Example of use of (S) flag



On 24 December 2015 at 06:01, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> Note also that ${(S)var:#pat} is not useful; pat must still match the
> entire value of $var (or an element of $var in the array case) for the
> element to be matched/removed.

Too bad, my original intention was to do what list=(
"${(@M)list:#(#i)*$~search_pattern*}" ) does but with (S) and compare
performance of the two. Was surprised that this list=(
"${(@SM)list:#(#i)$~search_pattern}" ) doesn't work.

Best regards,
Sebastian Gniazdowski



Messages sorted by: Reverse Date, Date, Thread, Author