[jboss-cvs] JBossAS SVN: r101733 - branches/Branch_5_0/main/src/bin.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Mar 2 13:12:06 EST 2010


Author: mladen.turk at jboss.com
Date: 2010-03-02 13:12:06 -0500 (Tue, 02 Mar 2010)
New Revision: 101733

Modified:
   branches/Branch_5_0/main/src/bin/run.sh
Log:
Escape the quotes when feeding eval

Modified: branches/Branch_5_0/main/src/bin/run.sh
===================================================================
--- branches/Branch_5_0/main/src/bin/run.sh	2010-03-02 18:11:30 UTC (rev 101732)
+++ branches/Branch_5_0/main/src/bin/run.sh	2010-03-02 18:12:06 UTC (rev 101733)
@@ -253,16 +253,16 @@
 while true; do
    if [ "x$LAUNCH_JBOSS_IN_BACKGROUND" = "x" ]; then
       # Execute the JVM in the foreground
-      eval "$JAVA" $JAVA_OPTS \
-         -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
-         -classpath "$JBOSS_CLASSPATH" \
+      eval \"$JAVA\" $JAVA_OPTS \
+         -Djava.endorsed.dirs=\"$JBOSS_ENDORSED_DIRS\" \
+         -classpath \"$JBOSS_CLASSPATH\" \
          org.jboss.Main "$@"
       JBOSS_STATUS=$?
    else
       # Execute the JVM in the background
-      eval "$JAVA" $JAVA_OPTS \
-         -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
-         -classpath "$JBOSS_CLASSPATH" \
+      eval \"$JAVA\" $JAVA_OPTS \
+         -Djava.endorsed.dirs=\"$JBOSS_ENDORSED_DIRS\" \
+         -classpath \"$JBOSS_CLASSPATH\" \
          org.jboss.Main "$@" "&"
       JBOSS_PID=$!
       # Trap common signals and relay them to the jboss process




More information about the jboss-cvs-commits mailing list