i have 2 scripts : example : toto.sh (main script) and toto.conf.sh
toto.conf.sh :
case $1 in
"alci")
nb=1
domain="soder"
;;
*)
exit 1;
;;
esac
exit 0
toto.sh :
domain=""
site_name=$1
./toto.conf.sh $site_name
echo $domain
...
exit 0
i launch : ./toto.sh alci, t
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to lacsap on 7/30/2007 6:11 AM:
> i have 2 scripts : example : toto.sh (main script) and toto.conf.sh
>
> toto.conf.sh :
>
...
> exit 0
If you want toto.conf.sh to be sourced as part of a larger script, you
should either use return or ju