On Ubuntu 20.04.2 LTS /bin/sh provided by dash 0.5.10.2-6, which claims to be a posix compliant shell, which fails as follows:
jboss-cli.sh: 89: Syntax error: "(" unexpected
This is line 89 shown along with the previous line:
# WFCORE-5241 convert $JAVA_OPTS into array and quote each element to allow exec them with whitespace inside. java_opts_array=()
If this shell script requires bash, then the first line should be:
#!/bin/bash
- duplicates
-
JBEAP-21214 jboss-cli.sh fail with 89: Syntax error: "(" unexpected when running from dash
- Closed
-
WFCORE-5333 jboss-cli.sh fail with 89: Syntax error: "(" unexpected
- Closed
- is caused by
-
WFCORE-5241 Jboss-cli issue with spaces in JAVA_OPTS on Unix
- Reopened