On Windows command prompt:
D:\> echo %undef%
%undef%
D:\> type undef.bat
echo %undef%
D:\> undef
D:\> echo
ECHO is on.
My question is why on command line undefined environment variables like %undef%
are expanded to %undef%
but in BAT files are expanded to empty string?