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

Bash scripts should not attempt to expand argument properties

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Alpha10
    • None
    • Scripts
    • None

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

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

                Created:
                Updated:
                Resolved: