> I installed the attached patch into Gnulib. This > isn't perfect (it means MinGW grep won't detect that the input and > output are the same file), but it should be good enough to fix the > glaring bugs and to conform to POSIX.
Thanks, Paul. Yes, it surely fixes the immediate issue. I agree. Bruno