Index: ./catalina/src/bin/digest.sh
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat-4.0/catalina/src/bin/digest.sh,v
retrieving revision 1.1
diff -u -r1.1 digest.sh
--- ./catalina/src/bin/digest.sh	2001/05/22 20:37:21	1.1
+++ ./catalina/src/bin/digest.sh	2001/08/20 09:51:16
@@ -45,7 +45,20 @@
 fi
 
 # ----- Set Up The System Classpath -------------------------------------------
+# Cygwin support.  $cygwin _must_ be set to either true or false.
+case "`uname`" in
+  CYGWIN*) cygwin=true ;;
+  *) cygwin=false ;;
+esac
 
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin; then
+  [ -n "$CATALINA_HOME" ] &&
+    CATALINA_HOME=`cygpath --unix "$CATALINA_HOME"`
+    [ -n "$JAVA_HOME" ] &&
+    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+fi
+
 CP="$CATALINA_HOME/server/lib/catalina.jar"
 
 if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then
@@ -53,9 +66,10 @@
 fi
 
 # convert the existing path to windows
-if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
+if $cygwin; then
    CP=`cygpath --path --windows "$CP"`
    CATALINA_HOME=`cygpath --path --windows "$CATALINA_HOME"`
+   JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
 fi
 
 echo "Using CLASSPATH: $CP"

The command completed successfully.
