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

Re: zsh heredoc crash



On Friday, September 09, 2016 10:00:54 Paulo César Pereira de Andrade wrote:
>   Hi,
> 
>   zsh (tested on 5.0.2) can be made to crash with a pattern
> like this:
> 
> ---8<---
> #!/usr/bin/zsh
> 
> cat >> /tmp/try <<EOF
> export A="$(tr '\n' ' ' <<BLDARC
> content
> BLDARC)"
> EOF
> ---8<---

I was not able to make upstream zsh 5.0.2 crash with the above reproducer.

The bug seems to be introduced with the following commit:

https://sourceforge.net/p/zsh/code/ci/c0d01a6f

... and fixed with the following commit:

https://sourceforge.net/p/zsh/code/ci/c6c9f5da

Kamil



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