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

PGE task does dynamic replacement on bash conditionals

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 0.3
    • 1.1
    • pge wrapper framework
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: