Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!csd4.milw.wisc.edu!uakari.primate.wisc.edu!indri!nic.MR.NET!hal!ncoast!nc386!allbery From: allbery@nc386.UUCP (Brandon S. Allbery) Newsgroups: alt.sources.d Subject: Re: face2ps Message-ID: <1989Aug4.221012.20430@nc386.uucp> Date: 4 Aug 89 22:10:12 GMT References: <17286@bellcore.bellcore.com> <1989Aug2.132936.8919@IDA.ORG> Sender: allbery@nc386.uucp (Brandon S. Allbery) Reply-To: allbery@nc386.UUCP (Brandon S. Allbery) Distribution: alt Organization: North Coast Computer Resources, Cleveland, OH Lines: 21 In-reply-to: roskos@IDA.ORG (Eric Roskos) In article <1989Aug2.132936.8919@IDA.ORG>, roskos@IDA (Eric Roskos) writes: +--------------- | Notice he remembered that Unix uses forward slashes instead of backwards | slashes, but forgot that it doesn't always stick in the full path name | for argv[0] the way DOS (or, more accurately, that C compiler) does. +--------------- MiSDOS is right. The full name of the program (complete with drive and path) is stashed after the end of the environment by MiSDOS 3.x/4.x; the compiler simply points argv[0] to it. Note that the command line passed to a program under DOS has the command name stripped, so under MiSDOS 2.x one has *no* way to determine the name of the program. And people wonder why I call it Mis-DOS! ++Brandon -- Brandon S. Allbery, moderator of comp.sources.misc allbery@NCoast.ORG uunet!hal.cwru.edu!ncoast!allbery ncoast!allbery@hal.cwru.edu * This message brought to you courtesy the "Watcher" for the 4th NCoast * "ncoast #4 regenerates into ncoast #5 on 8/6/89!" -- the Watcher (aka nc386)