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

[BUG] Appending by arr[@]//(#e)/... crashes Zsh on WSL



Hello,
I've just fixed a long standing bug in F-Sy-H:

https://github.com/zdharma/fast-syntax-highlighting/issues/146

by a patch that changed appending to an array from:

arr=( ${arr[@]//(#e)/an-appendage} )

with a manual loop:

for __ in ${arr[@]}; do
__s+=( ${__}an-appendage )
done

The exact commit is:
https://github.com/zdharma/fast-syntax-highlighting/commit/9a6f

I guess that a Valgrind run would be helpful. BTW. How are the
automatic Valgrind tests doing? They would be helpful now.

-- 
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org



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