AnotherAlan
Technical User
Guys,
I have seen this construct in a number of our scripts but have no idea what the final value should be. Can someone provide an explanation please.
I do understand the test and the variable assignments, just not the x$RET = x part. What does x represent?
All help very much appreciated.
RET=`$RCMD $TGT_HOST date 2>/dev/null`
if [[ x$RET = x ]]; then
Thanks
Alan
I have seen this construct in a number of our scripts but have no idea what the final value should be. Can someone provide an explanation please.
I do understand the test and the variable assignments, just not the x$RET = x part. What does x represent?
All help very much appreciated.
RET=`$RCMD $TGT_HOST date 2>/dev/null`
if [[ x$RET = x ]]; then
Thanks
Alan