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

Bash scripts should not attempt to expand argument properties

    XMLWordPrintable

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'"

      Attachments

        Activity

          People

            jperkins-rhn James Perkins
            jperkins-rhn James Perkins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: