[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Why is srcdir passed as .
From: |
Bernard Dautrevaux |
Subject: |
RE: Why is srcdir passed as . |
Date: |
Fri, 27 Oct 2000 10:20:48 +0200 |
> -----Original Message-----
> From: Akim Demaille [mailto:address@hidden
> Sent: Thursday, October 26, 2000 5:14 PM
> To: address@hidden
> Cc: Lars J. Aas; Bernard Dautrevaux; 'Mo DeJong'; address@hidden
> Subject: Re: Why is srcdir passed as .
>
>
> >>>>> "Thomas" == Thomas E Dickey <address@hidden> 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: address@hidden
address@hidden
--------------------------------------------
- Re: Why is srcdir passed as ., (continued)
- Re: Why is srcdir passed as ., Thomas E. Dickey, 2000/10/26
- Re: Why is srcdir passed as ., Akim Demaille, 2000/10/26
- Re: Why is srcdir passed as ., Thomas E. Dickey, 2000/10/26
- Re: Why is srcdir passed as ., Akim Demaille, 2000/10/26
- Re: Why is srcdir passed as ., Thomas E. Dickey, 2000/10/26
- Re: Why is srcdir passed as ., Akim Demaille, 2000/10/26
Re: Why is srcdir passed as ., Ben Woodard, 2000/10/26
RE: Why is srcdir passed as ., Bernard Dautrevaux, 2000/10/26
RE: Why is srcdir passed as .,
Bernard Dautrevaux <=
RE: Why is srcdir passed as ., Bernard Dautrevaux, 2000/10/27
RE: Why is srcdir passed as ., Bernard Dautrevaux, 2000/10/27