Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33431

Single variable that includes multiple arguments does not work on Linux.

    Details

    • Similar Issues:

      Description

      This cmd works using shell command on Linux and XShell on Windows, but not XShell on Linux.
      $JYTHON/xyz.py --showConfig

      This is the value of JYTHON:
      JYTHON=$JAVA -jar $JYTHON_JAR -Dpython.path=$PYTHON_LOC $PYTHON_LOC

      Using the individual variables works using XShell on Linux:
      $JAVA -jar $JYTHON_JAR -Dpython.path=$PYTHON_LOC $PYTHON_LOC/xyz.py --showConfig

      I think the reason for this is that linux treats each variable as a single argument. This is the reason Ant has <arg line> vs <arg value> support to distinguish handling of spaces within args on linux. (See: https://ant.apache.org/manual/using.html#arg)

        Attachments

          Activity

          windchiller Mike Murray created issue -
          windchiller Mike Murray made changes -
          Field Original Value New Value
          Description This cmd works using shell command on Linux and XShell on Windows, but not XShell on Linux.
            ${JYTHON}/xyz.py --showConfig

          This is the value of JYTHON:
            JYTHON=${JAVA} -jar ${JYTHON_JAR} -Dpython.path=${PYTHON_LOC} ${PYTHON_LOC}

          Using the individual variables works using XShell on Linux:
            ${JAVA} -jar ${JYTHON_JAR} -Dpython.path=${PYTHON_LOC} ${PYTHON_LOC}/xyz.py --showConfig

          I think the reason for this is that linux treats each variable as a single argument. This is the reason Ant has <arg line> vs <arg value> support to distinguish handling of spaces within args on linux. (See: https://ant.apache.org/manual/using.html#arg)
          This cmd works using shell command on Linux and XShell on Windows, but not XShell on Linux.
            $JYTHON/xyz.py --showConfig

          This is the value of JYTHON:
            JYTHON=${JAVA} -jar ${JYTHON_JAR} -Dpython.path=${PYTHON_LOC} ${PYTHON_LOC}

          Using the individual variables works using XShell on Linux:
            ${JAVA} -jar ${JYTHON_JAR} -Dpython.path=${PYTHON_LOC} ${PYTHON_LOC}/xyz.py --showConfig

          I think the reason for this is that linux treats each variable as a single argument. This is the reason Ant has <arg line> vs <arg value> support to distinguish handling of spaces within args on linux. (See: https://ant.apache.org/manual/using.html#arg)
          windchiller Mike Murray made changes -
          Description This cmd works using shell command on Linux and XShell on Windows, but not XShell on Linux.
            $JYTHON/xyz.py --showConfig

          This is the value of JYTHON:
            JYTHON=${JAVA} -jar ${JYTHON_JAR} -Dpython.path=${PYTHON_LOC} ${PYTHON_LOC}

          Using the individual variables works using XShell on Linux:
            ${JAVA} -jar ${JYTHON_JAR} -Dpython.path=${PYTHON_LOC} ${PYTHON_LOC}/xyz.py --showConfig

          I think the reason for this is that linux treats each variable as a single argument. This is the reason Ant has <arg line> vs <arg value> support to distinguish handling of spaces within args on linux. (See: https://ant.apache.org/manual/using.html#arg)
          This cmd works using shell command on Linux and XShell on Windows, but not XShell on Linux.
            $JYTHON/xyz.py --showConfig

          This is the value of JYTHON:
            JYTHON=$JAVA -jar $JYTHON_JAR -Dpython.path=$PYTHON_LOC $PYTHON_LOC

          Using the individual variables works using XShell on Linux:
            $JAVA -jar $JYTHON_JAR -Dpython.path=$PYTHON_LOC $PYTHON_LOC/xyz.py --showConfig

          I think the reason for this is that linux treats each variable as a single argument. This is the reason Ant has <arg line> vs <arg value> support to distinguish handling of spaces within args on linux. (See: https://ant.apache.org/manual/using.html#arg)
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 169348 ] JNJira + In-Review [ 183458 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              windchiller Mike Murray
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: