Hey Ricky, I think we're running into an envReplace issue here. By default, it's set to use the '[' as delimeters in CAS-ville for this. Using those commands in bash will hose the env var replacement.
I guess we could optionally turn off env var replacement in these scenarios, by putting an attribute on the <exe> block in cas-pge, like "envReplace" and then allowing it to be set to true or false, or even better, having it at the <cmd> tag level. Have you tried setting envReplace="false" as an attribute on each <cmd> tag? I can't remember if Brian or I put that in there. In the end, I think that's the good longer term, back compat solution that would take care of what you're trying to do. Cheers, Chris On Apr 12, 2012, at 6:04 PM, Nguyen, Ricky wrote: > Hi all, > > I want to do this in bash: > > if [[ $x = 'hello' ]]; then > echo "goodbye" > fi > > > But if I try that in PGE, it will attempt to do dynamic replacement. So then > I tried this: > > if [bash_test]; then > echo "goodbye" > fi > > <metadata key="bash_test" val="[[ $x = 'hello' ]]" envReplace="false"/> > > And I still get the same failure. FYI, the script in the work directory looks > like: > > if null]; then > > Anyone know a workaround for this? > > Thanks, > Ricky > > > --------------------------------------------------------------------- > CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, > is for the sole use of the intended recipient(s) and may contain confidential > or legally privileged information. Any unauthorized review, use, disclosure > or distribution is prohibited. If you are not the intended recipient, please > contact the sender by reply e-mail and destroy all copies of this original > message. > > --------------------------------------------------------------------- > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Chris Mattmann, Ph.D. Senior Computer Scientist NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA Office: 171-266B, Mailstop: 171-246 Email: [email protected] WWW: http://sunset.usc.edu/~mattmann/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Adjunct Assistant Professor, Computer Science Department University of Southern California, Los Angeles, CA 90089 USA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
