Re: quotearg.c's shell_quoting_style and MinGW

Paul Eggert <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs,gmane.comp.lib.gnulib.bugs
Organization UCLA Computer Science Department
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.