Hello
I am a UNIX noob, attempting to use Cygwin on Windows XP to build a program. I am trying to get a few scripts together that can automate some tasks and I have run into a problem.
Basically this is related to calling one script from another. I found
this thread in my search but am too noob to know if it answers my problem or not, so I will explain here.
I am calling one script (say: myscript.sh) from my home directory (the script itself is in the cygwin/usr/local/bin directory). Now on one line of this script it calls another script that is on a different drive and folder (say: cygdrive/d/dev/project) and it is called
winenv.set.sh.
Now within winenv.set.sh a number of environmental variables are set. But what I notice is that after calling 'myscript.sh' the environmental variables have not been set. I know it works properly if I change into that directory and run the file using:
. winenv.set.sh. And that is the same line I am using in 'myscript.sh'.
If I run: bash -v myscript.sh I end up seeing the text of the winenv.set.sh file in the console.
Hopefully my explanation is clear but if not please let me know how I can clarify, and thank you for any help you can provide.