Some ideas to add to your research: echo $FOO FOO=def ksh echo $FOO exit > # FOO=abc > # export FOO > # ksh > # echo $FOO > abc > # exit > # FOO=123 > # ksh > # echo $FOO > 123 > # exit ksh echo $FOO unset FOO echo $FOO exit echo $FOO unset FOO echo $FOO ksh echo $FOO exit