I am using grep from Gnuwin32 on Windows.
On Windows XP, the following
grep -e "foo" NUL
results in the following output
grep: NUL: invalid argument
On Windows 7, the same arguments result in no output at all.
grep just exits without any error message.
Why is the output different between Windows XP and Windows 7?