> -----Original Message-----
> From: Akim Demaille [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 26, 2000 5:14 PM
> To: [EMAIL PROTECTED]
> Cc: Lars J. Aas; Bernard Dautrevaux; 'Mo DeJong'; [EMAIL PROTECTED]
> Subject: Re: Why is srcdir passed as .
> 
> 
> >>>>> "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 :)
> 

????? testing on a RedHat-6.1/2 (i.e. a 6.1 with some upgrades of 6.2)

bash$ uname -a
Linux altair.microdata.fr 2.2.16-3smp #1 SMP Mon Jun 19 19:00:35 EDT 2000
i686 unknown
bash$ echo '#!/bin/sh' > tst.sh
bash$ echo 'echo $0' >> tst.sh
bash$ chmod a+x tst.sh
bash$ ./tst.sh
./tst.sh
bash$ 

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:    +33 (0) 1 47 68 80 80
Fax:    +33 (0) 1 47 88 97 85
e-mail: [EMAIL PROTECTED]
                [EMAIL PROTECTED]
-------------------------------------------- 

Reply via email to