Review Board 1.7.22


OOZIE-820 Shell action to support env-var value with = sign

Review Request #4863 - Created April 24, 2012 and submitted

Mona Chitnis
trunk
OOZIE-820
Reviewers
oozie
oozie
For shell action, the env-var's value is truncated by =. for example, the shell action in
workflow.xml:
<shell xmlns="uri:oozie:shell-action:0.1">
... ...
<exec>${SCRIPT}</exec>
<env-var>myVar="v=123;t=456;s=abc--"</env-var>
<file>${SCRIPT}#${SCRIPT}</file>
<capture-output/>

then the ${myVar} becomes: 
myVar="v

expect it to be: ${myVar} equals v=123;t=456;s=abc--


Minor change required in ShellMain to limit string splitting to 1 occurrence of regex "="
unit tests pass
Ship it!
Posted (April 25, 2012, 6:44 p.m.)
Looks good
Ship it!
Posted (April 25, 2012, 9:22 p.m.)
+1
Ship it!
Posted (April 27, 2012, 9:45 p.m.)