[jboss-jira] [JBoss JIRA] (WFCORE-160) Bash scripts should not attempt to expand argument properties

James Perkins (JIRA) issues at jboss.org
Fri Oct 10 14:05:11 EDT 2014


James Perkins created WFCORE-160:
------------------------------------

             Summary: Bash scripts should not attempt to expand argument properties
                 Key: WFCORE-160
                 URL: https://issues.jboss.org/browse/WFCORE-160
             Project: WildFly Core
          Issue Type: Bug
          Components: Scripts
            Reporter: James Perkins
            Assignee: James Perkins


Scripts that parse the command line arguments use a pattern like
{code}
while [ "$#" -gt 0 ]
do
    case "$1" in
      *)
          CLI_OPTS="$CLI_OPTS \"$1\""
          ;;
    esac
    shift
done
{code}

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



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jboss-jira mailing list