[
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.7)
0.8
- push to 0.8, get ready for 0.7 release.
> 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
> Assignee: Chris A. Mattmann
> Fix For: 0.8
>
>
> 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="[[ $x = 'hello' ]$#93;"/>
> {code}
> Or variations, such as:
> {code}
> <metadata key="test_expression" val="[[ $x = 'hello' ]]"/>
> <metadata key="open" val="[["/>
> <metadata key="test" val="$x = 'hello'"/>
> <metadata key="close" val="]]"/>
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)