Path: utzoo!mnetor!uunet!husc6!hao!ames!ucsd!sdcsvax!ucsdhub!hp-sdd!ncr-sd!ncrlnk!ncrcce!rogers From: rogers@ncrcce.StPaul.NCR.COM (Bob Rogers) Newsgroups: comp.sys.atari.st Subject: Re: shell p usage Message-ID: <618@ncrcce.StPaul.NCR.COM> Date: 5 Feb 88 16:33:13 GMT References: <326@stag.UUCP> Reply-To: rogers@ncrcce.StPaul.NCR.COM (PUT YOUR NAME HERE) Organization: NCR Comten, Inc. Lines: 26 In article <326@stag.UUCP> syntel!dal@stag.UUCP (Dale Schumacher) writes: > > writes... >> Question #1 : How MWC's msh is discovering who called it ? >> (desktop, or other...) it is in the local shell variable 'calledfrom'. >> An other shell is able to tell the list of all parents programs... >> The base page does not contain any backward pointer, so what is it ? > >I'm not sure that MSH does* detect being called from the desktop. What >difference would it make (or does it in MSH). The basepage, however, When msh spawns another instance of itself (e.g., msh starts EMACS which spawns another copy of msh) is does not read the profile file. I presume that this difference in behaviour is why msh has to know where it came from. It also does not inherit shell variables (it does, however, inherit environment variables) which means that commands defined in the .bin or .cmd pseudo-directories are not available in 2nd (and subsequent) copy of the shell. >PS. For those waiting for dLibs Does dLibs or any other public domain library contain a version of "regexp"? -- ----------------------------------------------------------------------------- Bob Rogers rogers@StPaul.NCR.COM NCR Comten, St. Paul, MN