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

Re: array filtering



On Sun, Jun 9, 2024, at 4:30 PM, Lawrence Velázquez wrote:
> arr=(${(M)arr:#(#i)*/[^/]#$1[!/]#/})

Sorry, I used both "[^/]" and "[!/]" out of absentmindedness, not
for any technically necessary reason.  They do the same thing.

-- 
vq




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