On Tue, 17 Dec 2002 13:23:00 +0100, Benoit Mordelet <[EMAIL PROTECTED]>
wrote to [email protected]:
> comment fait-on cela stp ? je ne pensais pas cela possible de modifier
> l'environnement du shell parent.
Mea culpa.
En fait, il faut appeler le script SANS LANCER UN SHELL ENFANT.
Exemple :
Fichier exemple.sh
#!/bin/bash
export TOTO="titi"
On essaye en lançant un shell enfant :
$ ./exemple.sh
$ echo $TOTO
$
Par contre :
$ . ./exemple.sh
$ echo $TOTO
titi
$
--
G. Stewart -- [EMAIL PROTECTED]
[EMAIL PROTECTED]
Registered Linux user #284683
GnuPG key : BA3D01C6 (pgp.mit.edu)
Fingerprint: C3DF C686 6572 6E59 E3E4 0F40 2B9A 2218 BA3D 01C6
---------------------------------------------------------------
Doctors can be frustrating. You wait six weeks for an
appointment and he says, "I wish you'd come to me sooner."
Linux-Azur : http://www.linux-azur.org
Désinscriptions: http://www.linux-azur.org/liste.php3
**** Pas de message au format HTML, SVP ****