You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replacing $( ... ) with ... works in this Solaris shell.
There was also a problem with the awk command in the same line. The version of awk on Solaris 10 cannot have a space between the -F option and the field separator (gawk allows one).
Here is a diff between the original and the version that works on Solaris:
Rainer Jung (migrated from Bugzilla):
I also fixed the $(uname) and applied the change to both, bin/jmeter.sh and bin/jmeter which in trunk both had the problematic lines. No other JMeter shell scripts seem to use the sub shell notation $(...).
Michael Strasser (Bug 57608):
The Java version check code in bin/jmeter script in 2.12 fails when run on Solaris 10.
Example failure output:
-bash-3.2$ /opt/apache-jmeter-2.12/bin/jmeter
/opt/apache-jmeter-2.12/bin/jmeter: syntax error at line 32: `CURRENT_VERSION=$' unexpected
Line 32 contains:
CURRENT_VERSION=$("$_java" -version 2>&1 | awk -F '"' '/version/ {print $2}')
This syntax is not accepted by the standard shell /bin/sh.
More about the system:
-bash-3.2$ uname -a
SunOS ssessdevbuild 5.10 Generic_147147-26 sun4v sparc sun4v
JMeter 2.11 does not have the Java version check and works on Solaris 10.
Severity: normal
OS: Solaris
The text was updated successfully, but these errors were encountered: