in reply to Finding out how you were called...
Either I completely misread the question or you added the bit about $0 after I wrote this :)
$0 (for me, on RH 7.1) contains the full path even if the script is in the path. The only time it doesn't is if I specify a relative path from the command line. An option could be to check, if it doesn't match the full path, if $0 and the pwd eq what you're looking for.
Rich
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Finding out how you were called...
by suaveant (Parson) on Aug 06, 2001 at 23:53 UTC | |
|
Re: Re: Finding out how you were called...
by suaveant (Parson) on Aug 06, 2001 at 23:55 UTC | |
by rchiav (Deacon) on Aug 07, 2001 at 00:57 UTC | |
by suaveant (Parson) on Aug 07, 2001 at 04:37 UTC |