Article View: comp.sys.amiga.tech
Article #543Re: What is my name?
From: Randell Jesup
Date: Thu, 20 Jul 1989 06:16
Date: Thu, 20 Jul 1989 06:16
18 lines
1109 bytes
1109 bytes
In article <432@xdos.UUCP> doug@xdos.UUCP (Doug Merritt) writes:
>But in this case the full path is in argv[0], making this the easiest
>of the solutions.
> if (!argc)
> look at WBenchMsg
> else if (any {':','/'} in argv[0])
> use argv[0]
> else
> use PATH
That should work (though it is painful) under 1.2/1.3. I thought of
that one 5 minutes after I posted my other response. Glad to see someone
beat me to it.
--
Randell Jesup, Keeper of AmigaDos, Commodore Engineering.
{uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com BIX: rjesup
Common phrase heard at Amiga Devcon '89: "It's in there!"
Technical Details
Message-ID:
<7372@cbmvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!cbmvax!jesupReferences:
<26385@agate.BERKELEY.EDU> <20565@cup.portal.com> <1227@atanasoff.cs.iastate.edu> <432@xdos.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!cbmvax!jesup From: jesup@cbmvax.UUCP (Randell Jesup) Newsgroups: comp.sys.amiga.tech Subject: Re: What is my name? Message-ID: <7372@cbmvax.UUCP> Date: 20 Jul 89 06:16:15 GMT References: <26385@agate.BERKELEY.EDU> <20565@cup.portal.com> <1227@atanasoff.cs.iastate.edu> <432@xdos.UUCP> Reply-To: jesup@cbmvax.UUCP (Randell Jesup) Organization: Commodore Technology, West Chester, PA Lines: 18