Re(2): shell bug I reported here a few days ago

Tim Smith tim at callan.UUCP
Sat Mar 9 11:04:29 AEST 1985


Well, I just tried everything on a System III sh.  This is even stranger.
Let 'parent' be a command that prints the result of getppid().
Then the command

	if true
	then
		parent
		parent
		parent
	fi < /dev/null

shows the first two 'parent' commands are run from a subshell, while the
third is run from the main shell!  What IS going on?
-- 
Duty Now for the Future
					Tim Smith
			ihnp4!wlbr!callan!tim or ihnp4!cithep!tim



More information about the Comp.unix.wizards mailing list