If I have a local variable which holds an expression, it seems I need to do eval("$myvar")
to actually get the evaluated expression
I’m wondering, is there any case where an unevaluated local variable is useful?
If not, could you please have it automatically evaluate, so we don’t need to evaluate it wherever it’s used?
Here’s how I intend to use it (local var DAT)
RAWTARGET /test
TARGET `ifs(opexists("$RAWTARGET"),"$RAWTARGET","/default"))`
and then I just reference $TARGET where needed and if I wanna change the target, I set the RAWTARGET variable (and am failsafe).
Hope that made sense
Achim