Uploaded image for project: 'OODT'
  1. OODT
  2. OODT-441

PGE task does dynamic replacement on bash conditionals

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.3
    • Fix Version/s: 1.1
    • Component/s: pge wrapper framework
    • Labels:
      None

      Description

      I want to do this in bash:

      if [[ $x = 'hello' ]]; then
        echo "goodbye"
      fi
      

      But the PGE script ends up like this:

      if null]; then
        echo "goodbye"
      fi
      

      Same thing happens if I do the following:

      <cmd>
        if [test_expression]; then
          echo "goodbye"
        fi
      </cmd>
      ...
      <metadata key="test_expression" val="&#91;&#91; $x = 'hello' &#93;$#93;"/>
      

      Or variations, such as:

      <metadata key="test_expression" val="[[ $x = 'hello' ]]"/>
      
      <metadata key="open" val="&#91;&#91;"/>
      <metadata key="test" val="$x = 'hello'"/>
      <metadata key="close" val="&#93;&#93;"/>
      

        Attachments

          Activity

            People

            • Assignee:
              chrismattmann Chris A. Mattmann
              Reporter:
              rickdn Ricky Nguyen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: