zsh-workers
 help / color / mirror / code / Atom feed
* Weird problem with trn's Configure script
@ 1996-08-04 21:28 Wayne Davison
  1996-08-04 22:39 ` Zoltan Hidvegi
  1996-08-05 13:08 ` Weird problem with " Peter Stephenson
  0 siblings, 2 replies; 4+ messages in thread
From: Wayne Davison @ 1996-08-04 21:28 UTC (permalink / raw)
  To: zsh-workers

I finally tested trn's Configure script with zsh enulating sh and I found
one weird problem.  The script is trying to ensure that it is being run
by sh, not csh, so it does this test (tweaked for simplicity):

	(exit $?0) || echo You are not running sh

Under zsh 3.0pre6 in either zsh or sh compatibility mode this causes a
large chunk of the script to get executed multiple times.  Try the
following 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.

..wayne..


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1996-08-05 13:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-08-04 21:28 Weird problem with trn's Configure script Wayne Davison
1996-08-04 22:39 ` Zoltan Hidvegi
1996-08-05  7:47   ` Weird problem with zsh running " Wayne Davison
1996-08-05 13:08 ` Weird problem with " Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).