In the latter case, Perl calls the shell to handle the redirection, but command.com and cmd.exe have a built-in date command. Specify the full path to your Cygwin date binary. Alternatively, you probably should use something like print scalar localtime.
Note: if you forget to log in before posting, please reply to your own thread rather than posting a dupe that someone then has to clean up after you. Bonus hint: you may want to go to your User settings and change the site theme to a different look - that way, it is immediately obvious whether you are logged in.Makeshifts last the longest.
In reply to Re: different date command executed when called with redirection
by Aristotle
in thread date command !!!!
by Sara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |