Mail Archives: djgpp/1997/01/10/20:02:41
John M. Aldrich (fighteer AT cs DOT com) wrote:
: Weiqi Gao wrote:
: >
: > Yes. The current shell gets the variable whether you export or not.
: > Subshells gets the variable only after you export it. Is that how it works
: > in ksh?
:
: In ksh, any variables that are not exported only exist in the context of
: the current shell, and are not retained by the parent when that shell
: exits. So, if you write a script, but don't export your variables, they
: will only exist in the context of that script.
:
This was my problem, by exporting the variables I needed for make and gcc,
it all wroks. Thanks to everyone for their help.
Jeff T
- Raw text -