Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!cs.utexas.edu!uunet!dino!atanasoff!jwright From: jwright@atanasoff.cs.iastate.edu (Jim Wright) Newsgroups: comp.sys.amiga.tech Subject: Re: What is my name? Message-ID: <1227@atanasoff.cs.iastate.edu> Date: 19 Jul 89 01:14:35 GMT References: <26385@agate.BERKELEY.EDU> <20565@cup.portal.com> Reply-To: jwright@atanasoff.cs.iastate.edu.UUCP (Jim Wright) Organization: Iowa State U. Computer Science Department, Ames, IA Lines: 12 In article <20565@cup.portal.com> thad@cup.portal.com (Thad P Floryan) writes: | | It would be trivial to adapt "which" to match the first occurrence | of */argv[0] in the PATH searched by "which". Wouldn't this fail if, for example, I had a script file in S: which then explicitly called the program and the program was not in a directory on the PATH. -- Jim Wright jwright@atanasoff.cs.iastate.edu