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

Re: Segfault in =( ) substitution



On Wed, Oct 17, 2012 at 09:16:03PM +0100, Peter Stephenson wrote:
> I suppose it's worth pointing out you can now do things like this...
> 
> () {
>    print File $1:
>    cat $1
> } =(print This be the verse)
> 
> producing:
> 
> File /tmp/zsh0wPl3Y:
> This be the verse
> 
> That's a better bet than any hack within the shell that I can think of
> because the scoping is obvious.
> 

Hello,

I just noticed that this example crashed on zsh both 5.0 and 5.0.1. If I
compile zsh with debug enabled, it runs like this:

% () {
function> print File $1:
function> cat $1
function> } =(print hello)
File :
cat: : No such file or directory

Please take a look. Thanks.



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