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

standalone.sh does not handle correctly situation when CDPATH environment variable is set

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.0.0.Final
    • Component/s: Scripts
    • Labels:
      None

      Description

      bin/standalone.sh does not use "shift" correctly when parsing commandline option, failing with "bin/standalone.sh: 34: shift: can't shift that many" if "--debug" without a parameter is used on dash (default shell in debian)

      Second issue is that the script does not handle correctly situation when CDPATH environment variable is set, failing completely.

      Attaching patch that fixes both these issues.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ctomc Toma┼ż Cerar
                Reporter:
                mplmc Martin Petricek
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: