Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5335

jboss-cli.sh incompatible with Ubuntu Focal dash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 15.0.0.Final
    • CLI, Scripts
    • None
    • Hide

      Execute jboss-cli.sh on Ubuntu 20.04.2.LTS

      Show
      Execute jboss-cli.sh on Ubuntu 20.04.2.LTS
    • Undefined

    Description

      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
      

      Attachments

        Issue Links

          Activity

            People

              jdenise@redhat.com Jean Francois Denise
              david.everly David Everly (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: