Hi there,
in a script I have
#!/usr/bin/ksh
TEST=hello
export TEST
Problem is, that the variable doesn't get exported. I also tried
typeset -x TEST=hello
When I put the two lines in my .profile, the variable is set fine.
Whats could be the problem here?
How are you determining that TEST has not been exported?
I've mentioned the cause in this post (parent/child shell): http://www.unix.com/shell-programming-scripting/112354-cleanup-path-awk.html\#post302326191
Run the script in the current shell:
. ./script
Regards
otheus
5
Right, you need to "source" the script, not execute at a separate process. That's done in ksh/bash/sh with period-space-scriptname.