Uploaded image for project: 'Pentaho Data Integration - Kettle'
  1. Pentaho Data Integration - Kettle
  2. PDI-15463

"Execute a Process" step does not respect quotes in command arguments

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Severity: High
    • Resolution: Fixed
    • Affects Version/s: 4.3.0 GA (4.5.0 GA Suite Release), 5.0.0 GA (5.0.0 GA Suite Release), 6.1.0 GA
    • Fix Version/s: 7.0.0 GA
    • Component/s: Step
    • Labels:
    • Story Points:
      0
    • PDI Sub-component:
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.

      Description

      The "Execute a Process" step, when passed arguments that contain spaces, will split the individual argument into multiple, using each space character as a delimiter.

      Example: ./script.sh 'this is a test'.

      #!/bin/bash
      if [ "$#" -eq 1 ]; then
        echo "ok"
      else
        echo "incorrect argument count: $#"
      fi
      

        Attachments

        1. NewtestPDI-15463.ktr
          16 kB
        2. PDI-15463.ktr
          12 kB
        3. pdi15463.sh
          0.1 kB
        4. test.bat
          0.2 kB
        5. test.ktr
          15 kB

          Activity

            People

            Assignee:
            ldeng Li Deng
            Reporter:
            mtucker Matt Tucker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: