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

Bash scripts should not attempt to expand argument properties

    Details

      Description

      Scripts that parse the command line arguments use a pattern like

      while [ "$#" -gt 0 ]
      do
          case "$1" in
            *)
                CLI_OPTS="$CLI_OPTS \"$1\""
                ;;
          esac
          shift
      done
      

      The CLI_OPTS="$CLI_OPTS \"$1\"" should be CLI_OPTS="$CLI_OPTS '$1'"

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jamezp James Perkins
                Reporter:
                jamezp James Perkins
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: