How to set variable value using command in BuildForge 8.0.0.2 ?
I have two environment variables defined say, var1=hello:welcome:BF and var2=hello. While executing a step I perform following commands to set newenv=welcome as result
.tset env "newenv=`echo %var1:*%var2%:=%`"
.tset env "newenv=`echo %newenv::=&rem.%`"
However it works only with BF v7.x but with BF v8.0.0.2 MJC engine this behaves in a strange manner and doesn't recognize the variable value.
Step Log in BFv8.0.0.2:
STEP CRRBF9999I: .tset 'env "newenv=`echo %var1:*%search%:=%`"'.
EXEC CRRBF2001I: EXEC: .tset set temporary variable "newenv" = "$[var1:*]search$[:=]" (New Variable)
STEP CRRBF9999I: .tset 'env "newenv=`echo %newenv::=&rem.%`"'.
EXEC CRRBF2002I: EXEC: .tset set temporary variable "newenv" = "$[newenv::=".
Any help is much appreciated. Thanks!!