Assume the following script:
Code:
#! /bin/bash
if [ "$TEST" = "YES" ] ; then
export TEST=NO
fi
I set the variable:
[murphy@localhost]$ export TEST=YES
run the script (yes, it's already executable)
[murphy@localhost]$ . ./test
and finally
[murphy@localhost]$ echo $TEST
YES
Ok, what am I doing wrong?