On Wed, 28 Dec 2005, Wolfgod wrote:
> Salut et merci, ben non ça ne fonctionne pas!

ScriptA.sh
----
#!/bin/sh
toto="toto c'est moi"
----

ScriptB.sh
----
#!/bin/sh
. ./scriptA.sh
echo "$toto"
----

Cf man bash => rechercher "source" ou "."

A+
-- 
Raphaël Hertzog

Premier livre français sur Debian GNU/Linux :
http://www.ouaza.com/livre/admin-debian/


-- 
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Répondre à