servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject svn commit: r801911 - /servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/servicemix
Date Fri, 07 Aug 2009 08:40:39 GMT
Author: jbonofre
Date: Fri Aug  7 08:40:39 2009
New Revision: 801911

URL: http://svn.apache.org/viewvc?rev=801911&view=rev
Log:
[SM-1879] bin/servicemix may fail to start when CDPATH is set (on POSIX shells).

Modified:
    servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/servicemix

Modified: servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/servicemix
URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/servicemix?rev=801911&r1=801910&r2=801911&view=diff
==============================================================================
--- servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/servicemix
(original)
+++ servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/servicemix
Fri Aug  7 08:40:39 2009
@@ -110,6 +110,9 @@
         warn "Ignoring predefined value for SERVICEMIX_HOME"
     fi
     
+    # In POSIX shells the CDPATH may cause cd to write to stdout
+    (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+    
     SERVICEMIX_HOME=`cd $DIRNAME/..; pwd`
     if [ ! -d "$SERVICEMIX_HOME" ]; then
         die "SERVICEMIX_HOME is not valid: $SERVICEMIX_HOME"



Mime
View raw message