Re: quotearg.c's shell_quoting_style and MinGW

Eli Zaretskii <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs,gmane.comp.lib.gnulib.bugs
Message-ID <[email protected]>
> From: Bruno Haible <[email protected]>
> Cc: Paul Eggert <[email protected]>, Eli Zaretskii <[email protected]>, [email protected]
> Bcc: [email protected]
> Date: Sun, 06 May 2012 20:33:05 +0200
> 
> Whereas for my proposal I see the following drawbacks:
> 
>   * The programmer has to explicitly write code with #if for native Windows.

This drawback could perhaps be avoided if, instead having an
"ms_shell" style in addition to the current "Posix shell" style, we
use a different set of styles: a "shell command-line argument" quoting
style and a "file-name" quoting style.  The former would be used for
producing shell commands, and will use platform-dependent quoting,
similar to the patch I sent.  The latter would be used for quoting
file names which are not meant to be passed to a shell, but rather
written as part of a program's output; that latter style will produce
identical results on all platforms.

Would this be okay?
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.