On 05/06/2012 09:26 AM, Eli Zaretskii wrote:
a MinGW program running on Windows does not need to cater to Posix shells
It's not a question of catering to Posix shells, it's a question of what the output from 'diff' looks like. It's better to have 'diff' output be consistent on all platforms.
popen and friends don't know enough about the context to DTRT with quoting.
On mingw the popen implementation can assume that popen's argument is quoted suitably for POSIX, since that's the popen API. The idea is that the caller of popen can assume POSIXish behavior, and that it's up to the popen implementation to arrange for that. This is the standard way that gnulib works.
