oodt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris A. Mattmann (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OODT-441) PGE task does dynamic replacement on bash conditionals
Date Fri, 14 Dec 2012 00:34:19 GMT

     [ https://issues.apache.org/jira/browse/OODT-441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chris A. Mattmann updated OODT-441:
-----------------------------------

    Fix Version/s:     (was: 0.5)
                   0.6

- push out to 0.6
                
> PGE task does dynamic replacement on bash conditionals
> ------------------------------------------------------
>
>                 Key: OODT-441
>                 URL: https://issues.apache.org/jira/browse/OODT-441
>             Project: OODT
>          Issue Type: Bug
>          Components: pge wrapper framework
>    Affects Versions: 0.3
>            Reporter: Ricky Nguyen
>             Fix For: 0.6
>
>
> I want to do this in bash:
> {code}
> if [[ $x = 'hello' ]]; then
>   echo "goodbye"
> fi
> {code}
> But the PGE script ends up like this:
> {code}
> if null]; then
>   echo "goodbye"
> fi
> {code}
> Same thing happens if I do the following:
> {code}
> <cmd>
>   if [test_expression]; then
>     echo "goodbye"
>   fi
> </cmd>
> ...
> <metadata key="test_expression" val="&#91;&#91; $x = 'hello' &#93;$#93;"/>
> {code}
> Or variations, such as:
> {code}
> <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;"/>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message