This is the mail archive of the
cygwin
mailing list for the Cygwin project.
newbie bash variable problem
- From: brian <brw314 at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 17 Jan 2010 15:44:28 -0800
- Subject: newbie bash variable problem
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 an echo this in the script
echo JAVA
but this just gives "JAVA"
and this
echo $JAVA
/bin/java/c/jdk1.6.0_16
which some how over writes part of the variable.
What is the right way to set and to echo the JAVA variable?
Thanks
Brian
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple