Why does JBoss EAP run.sh script uses "eval" to launch the java process?

Solution Verified - Updated -

Issue

In the $JBOSS_HOME/bin/run.sh script, an eval is used to launch java

eval "$JAVA" $JAVA_OPTS 

Previously, in the old script,  this was not done

"$JAVA" $JAVA_OPTS 

This change broke our start-up scripts that initialize a bunch of JVM/JBoss parameters and call run.sh.

Any reason why this change was made?

Environment

JBoss Enterprise Application Server (EAP) 5.0.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.