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

Re: Weird problem with trn's Configure script



> 	#!/local/bin/zsh
> 	(exit) || echo This should not be seen
> 	echo we are here
> 
> With pre6 you'll see the "we are here" statement twice!  In pre3 it
> did something a little weirder:
> 
> 	./testscript: command not found: ould [4]
> 	we are here
> 
> I haven't had a chance to check the code, but it looks like the closing
> paren isn't being parsed correctly in this instance.  This only seems
> to happen if the last command in ()'s is an exit.

I cannot reproduce this with any version of zsh.  Are you sure that it is a
zsh bug?  I cannot imagine what can cause such a problem.  Isn't it a
compiler bug?  What system/compiler do you use?  Isn't there something
unusual in your /etc/zshenv?

Zoltan



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