[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] exit in END block
From: |
Aharon Robbins |
Subject: |
Re: [bug-gawk] exit in END block |
Date: |
Tue, 24 Mar 2015 22:02:40 +0200 |
User-agent: |
Heirloom mailx 12.5 6/20/10 |
Hi Isabella.
Thank you for the report. It is indeed a regression since this
did used to work.
Andy, your patch is right. If you follow the code in awkgram.y that
builds the instruction list, when there is no expression for the exit,
it adds a push of dupnode(Nnull_string). This way it's ok to always
do the pop in interpret.h.
Adding a test case is also the right thing to do.
Please add a test case and push that along with this fix to gawk-4.1-stable
and merge to master. If you can't get to it let me know and I'll do it.
Thanks,
Arnold