You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by fu...@apache.org on 2006/09/13 21:03:04 UTC

svn commit: r443076 - /db/derby/code/trunk/bin/derby_common.sh

Author: fuzzylogic
Date: Wed Sep 13 12:03:03 2006
New Revision: 443076

URL: http://svn.apache.org/viewvc?view=rev&rev=443076
Log:
Minor fix to detect MKS before running `expr index` which can output error text.

Modified:
    db/derby/code/trunk/bin/derby_common.sh

Modified: db/derby/code/trunk/bin/derby_common.sh
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/bin/derby_common.sh?view=diff&rev=443076&r1=443075&r2=443076
==============================================================================
--- db/derby/code/trunk/bin/derby_common.sh (original)
+++ db/derby/code/trunk/bin/derby_common.sh Wed Sep 13 12:03:03 2006
@@ -162,6 +162,9 @@
 fi
 
 # Readjust classpath for MKS
-if [ `expr index $SHELL sh.exe` -gt 0 ]; then
-  LOCALCLASSPATH=`echo $LOCALCLASSPATH | sed -E 's/([\d\w]*):([\d\w]*)/\1;\2/g'`
+if [ ! `expr index` = "index" ]; then 
+  if [ `expr index $SHELL sh.exe` -gt 0 ]; then
+    LOCALCLASSPATH=`echo $LOCALCLASSPATH | sed -E 's/([\d\w]*):([\d\w]*)/\1;\2/g
+'`
+  fi
 fi