On 26 Oct 2000, Akim Demaille wrote: > >>>>> "Thomas" == Thomas E Dickey <[EMAIL PROTECTED]> writes: > > Thomas> $0 is a full pathname if that's the way the script was invoked > Thomas> (I assume that's what you are saying - if it was not invoked > Thomas> with a full pathname, it really depends on the shell that was > Thomas> used to look up the name of the script). > > Actually no, I really meant that I never saw a $0 being the name which > was invoked. A full path, at least in each practical case, I suppose > you can break that, but it does not happen in real life. At least > mine :) > #!/bin/sh echo "$0 $*" if test $# != 0 ; then echo ...done else eval $0 param fi Call that "foo", and run ./foo. On Solaris I only see relative pathnames printed. (Are you still talking about that case?) -- T.E.Dickey <[EMAIL PROTECTED]> http://dickey.his.com ftp://dickey.his.com
- Why is srcdir passed as . Ben Woodard
- Re: Why is srcdir passed as . Mo DeJong
- Re: Why is srcdir passed as . Alexandre Oliva
- RE: Why is srcdir passed as . Bernard Dautrevaux
- Re: Why is srcdir passed as . Lars J. Aas
- Re: Why is srcdir passed as . Thomas E. Dickey
- RE: Why is srcdir passed as . Bernard Dautrevaux
- Re: Why is srcdir passed as . Akim Demaille
- Re: Why is srcdir passed as . Thomas E. Dickey
- Re: Why is srcdir passed as . Akim Demaille
- Re: Why is srcdir passed as . Thomas E. Dickey
- Re: Why is srcdir passed as . Akim Demaille
- Re: Why is srcdir passed as . Ben Woodard
- Re: Why is srcdir passed as . Mo DeJong
- Re: Why is srcdir passed as . Ben Woodard
- Re: Why is srcdir passed as . Alexandre Oliva
- Re: Why is srcdir passed as . Alexandre Oliva
- RE: Why is srcdir passed as . Bernard Dautrevaux
- RE: Why is srcdir passed as . Bernard Dautrevaux
- RE: Why is srcdir passed as . Bernard Dautrevaux