Closed PossiblyAShrub closed 3 months ago
This test captures the effect of this change:
#### eval with vars follows same scoping as without proc local-scope { var myVar = "foo" eval (^(echo $myVar), vars={ someOtherVar: "bar" }) eval (^(echo $myVar)) } # In global scope var myVar = "baz" eval (^(echo $myVar), vars={ someOtherVar: "bar" }) eval (^(echo $myVar)) local-scope ## STDOUT: baz baz foo foo ## END
Awesome, thank you! Now my question is if we should also use ctx_Eval for TWO places in Hay
ctx_Eval
I'll post on Zulip
This test captures the effect of this change: