[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Quelle est la commande ou fonction permettant de récupérer des variables en bash?



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/



Reply to: