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

Re: Test Failures from latest CVS



Bart Schaefer wrote:
> The scriptname has to be changed before the string to be eval'd is parsed. 
> Peter tried (or so I presume) to fix a long-standing bug that scriptname 
> would not be restored properly on a parse error, by delaying the change 
> rather than by explicitly restoring; but also neglected to restore ineval 
> to its previous state in the same circumstance.

Thanks, that looks better.

> (Is there a reason not to 
> assign lastval in that case also?  It could simplify the code structure.)

I don't think there's a reason *not* to; it's just not necessary because
in any case on return from bin_eval it gets set to the 1 we just
returned.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Work: pws@xxxxxxx
Web: http://www.pwstephenson.fsnet.co.uk



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