Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!world!decwrl!apple!portal!atari!apratt From: apratt@atari.UUCP (Allan Pratt) Newsgroups: comp.sys.atari.st.tech Subject: Re: Can my program find its name? Message-ID: <2845@atari.UUCP> Date: 22 Feb 91 22:20:34 GMT References: <2133022@nuthaus.UUCP> <1991Feb18.205200.8638@uwovax.uwo.ca> <2843@atari.UUCP> <1991Feb21.151919.23876@informatik.uni-erlangen.de> Organization: Atari Corp., Sunnyvale CA Lines: 17 csbrod@immd4.informatik.uni-erlangen.de (Claus Brod) writes: >BTW, the missing argv[0] in TOS programs really hurts sometimes. >Sure, it's a design failure you are not responsible for, but it >might be worth it thinking about solutions. We *have* thought about solutions. That's what the extended argument passing spec is for. It's pretty widely accepted, I think. It's the same as the MWC method, using ARGV= in the environment, except (A) there is no information about file handles (you can find out other ways), and (B) there is a special value in the "length" byte of the command line to tell you the environment's ARGV= is valid. I will try to find the extended argument spec document and post it again. ============================================ Opinions expressed above do not necessarily -- Allan Pratt, Atari Corp. reflect those of Atari Corp. or anyone else. ...ames!atari!apratt