RFR [8025886] typo in shell regtest == instead of =
Ivan Gerasimov
ivan.gerasimov at oracle.com
Thu Oct 3 07:11:02 PDT 2013
Hello!
May I please have a review for a simple fix of the shell regtest?
Bash seems to accept both = and == comparisons, but sh accepts only =.
http://bugs.sun.com/view_bug.do?bug_id=8025886 (not yet visible.)
Sincerely yours,
Ivan
--- a/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh
+++ b/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh
@@ -34,7 +34,7 @@
OS=`uname -s`
UMASK=`umask`
-if [[ $OS == CYGWIN_NT* ]] ; then
+if [[ $OS = CYGWIN_NT* ]] ; then
OS="Windows_NT"
if [ -z "$SystemRoot" ] ; then
SystemRoot=$SYSTEMROOT
More information about the serviceability-dev
mailing list