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

Re: How to substitute empty array element, or empty string



On 23.03.2017 at 03:04:40, Peter Stephenson (p.stephenson@xxxxxxxxxxx) wrote: 
> This might be one of those "bug" things you sometimes read about for other 
> projects… 
(…) 
> + print -rl -- "${(@)a//*/x}" 

I'm little thrilled that this goes away from how // "typically" works. In bash // also doesn't match empty element. Maybe it's a Posix thing? 

-- 
Sebastian Gniazdowski 
psprint [at] zdharma.org



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