Print the return value if it is not assigned to a variable (winbat).

This would be consistent with bash.
Behavior of printing an undefined variable is undefined.