Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!unisoft!gethen!bdt!david From: david@bdt.UUCP (David Beckemeyer) Newsgroups: comp.sys.atari.st Subject: Re: Pexec Cookbook Message-ID: <150@bdt.UUCP> Date: 24 Feb 88 20:13:54 GMT References: <498@uhnix2.UUCP> Reply-To: david@bdt.UUCP (David Beckemeyer) Organization: Beckemeyer Development Tools, Oakland, CA Lines: 47 Keywords: Pexec In article <498@uhnix2.UUCP> uace0@uhnix2.UUCP (Michael B. Vederman) writes: [ removed pexec cookbook ] [ Alan's ARGV= proposed solution of passing the parent basepage in env. PBP ] >In the startup code of the child, you would do something like this: > >If there's a PBP= in the environment > If atol(PBP) == my parent's basepage > get args from environment > else > get args from command line > endif >else > if there's an ARGV= in the environment > get args from environment > else > get args from command line > endif >endif > > >Does this sound reasonable? I would like to see this kind of thing >become a standard, ... If this is what everyone agrees to, I will do it. I never told MWC how to do ARGV=; they just did it, and so I went ahead and changed my programs to support it. I don't know if it ever reached you personally, but I and several other company reps. approached Atari for a "standard" way of doing this way before MWC came along, and collectively we were told (I quote from memory) "Atari won't make anything a standard; do it any way you want, but we won't necessarilly support it, and it may not be compatible with future Atari software and systems." At that I did it one way, and then MWC came along with another way, and the rest is history. Now at least MWC and Micro/MT C-Shell are all compatible. If the above approach is the new "official" standard, I will implement it; but not before I know it will be supportted. Would it also work to compare argv[1] from the ARGV= and from the command tail, and if they differ, use the args from the command tail? (This is not a flame on Alan. It's directed at Atari upper management BS). -- David Beckemeyer | "To understand ranch lingo all yuh Beckemeyer Development Tools | have to do is to know in advance what 478 Santa Clara Ave, Oakland, CA 94610 | the other feller means an' then pay UUCP: ...!ihnp4!hoptoad!bdt!david | no attention to what he says"