Shell Script Exporting Issue
I'm writing a script in shell and, in the script, I use
the export command multiple times to set some environment variables. Though, when I run the script the values are never set. Pertinent information: Script interpreter = #!/bin/sh user shell = bash example of export command: Code:
export TEST2=15 Any ideas? thanks. |
It sound like you're running the script in its own sub-shell. For example:
Code:
/path/to/script/script.sh Code:
source /path/to/script/script.sh |
All times are GMT -5. The time now is 03:32 AM. |