🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #518

Re: What is my name?

#518
From: Thad P Floryan
Date: Tue, 18 Jul 1989 05:37
16 lines
1095 bytes
Mike is asking about a program that will return more than just argv[0] re the
name of "what program am I?"  A program named "which" was posted to Usenet back
in November 1987 by Carolyn Scheppner (CATS); didn't see it in my Fish Index,
so if you need it, lemme know.  The sizes:

CLI2> ls -l src:which
----ar-e- 87-11-25 12:45:04   13     6180 which
----ar--- 87-11-25 12:44:46    9     4401 which.c
----ar--- 87-12-07 05:16:01    2      832 which.doc
Dirs:0   Files:3    Blocks:24    Bytes:11413   
CLI2>

It would be trivial to adapt "which" to match the first occurrence of */argv[0]
in the PATH searched by "which".

Thad Floryan [ thad@cup.portal.com (OR) ..!sun!portal!cup.portal.com!thad ]
Technical Details
Message-ID: <20565@cup.portal.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!ctrsol!ginosko!uunet!portal!cup.portal.com!thad
References: <26385@agate.BERKELEY.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!ctrsol!ginosko!uunet!portal!cup.portal.com!thad
From: thad@cup.portal.com (Thad P Floryan)
Newsgroups: comp.sys.amiga.tech
Subject: Re: What is my name?
Message-ID: <20565@cup.portal.com>
Date: 18 Jul 89 05:37:17 GMT
References: <26385@agate.BERKELEY.EDU>
Organization: The Portal System (TM)
Lines: 16