bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: quotearg.c's shell_quoting_style and MinGW


From: Paul Eggert
Subject: Re: quotearg.c's shell_quoting_style and MinGW
Date: Sun, 06 May 2012 09:41:50 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]