Udostępnij za pośrednictwem


More on command line redirection

For those of you who are more interested in the gritty details of command line redirection, RaymondC has posted a couple of great articles recently on his excellent The Old New Thing blog. 

The first discusses how (and more importantly, why) the redirection symbols are parsed by CMD.EXE rather than the program you're calling. 

The second points out some of the caveats of blindly accepting input from environment variables. While it may be a pain to quote the parameters your script takes, it can make troubleshooting easier and, as his post points out, can prevent your day from being ruined.