argv[0] in shellscript?

wu at spot.UUCP wu at spot.UUCP
Mon Jun 6 03:49:43 AEST 1988


In article <1813 at stpstn.UUCP> aad at stpstn.UUCP (Anthony A. Datri) writes:
>
>I want to write a script that will have multiple links to it, and be
>able to tell what name it was invoked with.  Ideas?

In the Bourne shell ${0} does just fine.

Carl Brandauer
inhp4!stcvax!nbires!bdaemon!carl



More information about the Comp.unix.questions mailing list