[PATCH] JDK-8025886: Replace [[ and == bash extensions in tests
merkel05 at gmail.com
Sat Dec 8 20:42:31 UTC 2018
I've recently been working on bug
that is mainly about cleaning up the [[ and == bash
extensions from the tests.
I've discovered, that there's a leftover after hg forest
consolidation. GeneratePropertyPassword.sh script
still uses beforementioned bash extensions. That has
been fixed within the scope of this bug:
Though fix didn't get to the consolidated forest.
The fix is trivial and just reapplies the patch from the
JBS' comments. Change has been tested with `dash`
and works fine.
Please find the patch inlined below. That would also be
great if anyone could sponsor it.
@@ -34,12 +34,13 @@
-if [[ $OS == CYGWIN_NT* ]] ; then
+case $OS in
if [ -z "$SystemRoot" ] ; then
- SystemRoot=`cygpath $SYSTEMROOT`
case $OS in
SunOS | Linux | Darwin | AIX )
More information about the hotspot-dev