Test7005594.sh requires update for full posix compliance

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 8
    • Component/s: hotspot
    • None
    • x86_64
    • linux_ubuntu

      Test7005594.sh has a bash-style parameter substitution on line 40 that is not compatible with dash (used on Ubuntu 22.04 to run this script in git PR checks).

      Line 40: # MEM="$((${MEM/\.*/} / 1024))"

      This can lead to a 'bad substitution' error message.

      Recommend swapping this out with a 'cut' command for full posix coimpliance.

      MEM="$(echo ${MEM} | cut -d'.' -f1)"
      MEM="$((${MEM} / 1024))"

            Assignee:
            Adam Farley
            Reporter:
            Adam Farley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: