For Expample the following Shell Script (my_environment.sh) didn't work.
#!/bin/shafter calling the script, there was no error message, but an "ECHO $MY_VARIABLE" didn't output the expected result.
MY_VARIABLE="Hello"
export MY_VARIABLE
Within Cygwin you have to call the shell script the following way, to persist the resulting variables:
source my_environment.sh
No comments:
Post a Comment