Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site callan.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!houxm!whuxl!whuxlm!akgua!sdcsvax!sdcrdcf!trwrb!scgvaxd!wlbr!callan!tim From: tim@callan.UUCP (Tim Smith) Newsgroups: net.unix-wizards Subject: Re(2): shell bug I reported here a few days ago Message-ID: <314@callan.UUCP> Date: Fri, 8-Mar-85 20:04:29 EST Article-I.D.: callan.314 Posted: Fri Mar 8 20:04:29 1985 Date-Received: Sun, 10-Mar-85 07:51:19 EST References: <313@callan.UUCP> Reply-To: tim@callan.UUCP (Tim Smith) Organization: Callan Data Systems, Westlake Village, CA Lines: 18 Summary: 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