I haven't used cygwin or bash in 5 years, but I need to write a bash script for my ISP to test JavaMail. I can't get simple things to work, so I'm wondering if maybe I have a bash shell config issue. I did update cygwin to the latest.
Here's a script I have written: --------------------------------------------- #!/bin/bash export JAVA_HOME="/usr/lib/jvm/jdk1.6.0_07" export TEST_HOME=. export PATH=.:${JAVA_HOME}/bin:${PATH} export TEST_JAR=${TEST_HOME}/test.jar export JAR1=${TEST_HOME}/log4j.jar export JAR2=${TEST_HOME}/commons-logging.jar export JAR3=${TEST_HOME}/commons-discovery.jar export JAR4=${TEST_HOME}/mail.jar export JAR5=${TEST_HOME}/activation.jar export CLASSPATH="$TEST_JAR;$JAR1;$JAR2;$JAR3;$JAR4;$JAR5" echo $CLASSPATH # ${JAVA_HOME}/bin/java -version $JAVA_HOME/bin/java -Xms128m -Xmx128m com.bob.test.JavaMailTest ---------------------- When I run this from my cygwin bash shell, here's what I get: bash-3.2$ ./test_javamail.sh /activation.jarery.jar /bin/java: No such file or directoryb/jvm/jdk1.6.0_07 /bin/java: No such file or directoryb/jvm/jdk1.6.0_07 Notice how the echo of the classpath is an overwrite of JAR3 path by JAR5 path. Also, a similar overwrite when I try to get the java version, and run my tester. Any ideas? I'm open to writing this in any other script, so please let me know if I should be using a sh script or something else. Thanks, --Bob -- View this message in context: http://old.nabble.com/BASH-Shell---Configuration-Problem--tp26753996p26753996.html Sent from the Cygwin list mailing list archive at Nabble.com. -- 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