Hi ppl,
As far as I did not find the answer in bash manual, I hope that
someone can help me here. Let say I have two bash scripts and I need the 
parameter which is set in scr2 to be visable in scr1. 

scr1:
      #!/bin/sh
      export LANG=lang1
      echo "LANG is $LANG in $0 "
      scr2
      echo "LANG is $LANG in $0"
scr2:
      #!/bin/sh
      echo "LANG is $LANG in $0 "
      export LANG=lang2
      echo "LANG is $LANG in $0"

However the output is :
LANG is lang1 in ././scr1
LANG is lang1 in ./scr2 
LANG is lang2 in ./scr2
LANG is lang1 in ././scr1
          ^ 
          ... so I have got here the old value of LANG.
The question is it possible to get the NEW value which is assigned in
scr2?

Thanks,
       Eugene

----------------------------
CRD, YerPhI, 375036, Armenia
URL: http://crdlx5.yerphi.am/
Phone: 374-2-344873

Reply via email to