Re: newbie bash variable problem

2010-01-17 Thread Greg Chicares
On 2010-01-17 23:44Z, brian wrote: > > $JAVA_HOME is the env variable which I can echo from the script as > /cygdrive/c/jdk1.6.0_16 > > but the script sets > > JAVA=$JAVA_HOME/bin/java/ My guess is that the script contains carriage returns. To look for them, use 'od'. To remove them, use 'd2

newbie bash variable problem

2010-01-17 Thread brian
Hi, This obviously isn't specific to cygwin, I don't think. I am trying to run some bash scripts in cygwin $JAVA_HOME is the env variable which I can echo from the script as /cygdrive/c/jdk1.6.0_16 but the script sets JAVA=$JAVA_HOME/bin/java/ I want to see if this is set right so I set