dragonwell-project / dragonwell8

Alibaba Dragonwell8 JDK
http://dragonwell-jdk.io
GNU General Public License v2.0
4.2k stars 497 forks source link

[Bug] jgroup在ubuntu系统上报错Syntax error: "(" unexpected (expecting "}") #385

Open sendaoYan opened 2 years ago

sendaoYan commented 2 years ago

Description jgroup在ubuntu系统上报错Syntax error: "(" unexpected (expecting "}")

ubuntu环境上默认sh指向dash,jgruop生成的shell脚本dash解释器不支持,导致报语法错误

image

Steps to Reproduce Steps to reproduce the behavior:

sudo /home/testuser/workspace/Test_openjdk8_dragonwell_sanity.openjdk_x86-64_linux/openjdkbinary/j2sdk-image/bin/jgroup -u testuser -g testuser

Expected behavior jgroup在ubuntu系统上正确运行

JDK version

openjdk version "1.8.0_332"
OpenJDK Runtime Environment (Alibaba Dragonwell Extended Edition 8.11.12) (build 1.8.0_332-b01)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell Extended Edition 8.11.12) (build 25.332-b01, mixed mode)

Execution environment image

luchsh commented 2 years ago

上古 shell 代码啊,有计划用 Java 重写么?