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: Eli Zaretskii
Subject: Re: quotearg.c's shell_quoting_style and MinGW
Date: Sun, 06 May 2012 22:42:03 +0300

> From: Bruno Haible <address@hidden>
> Cc: Paul Eggert <address@hidden>, Eli Zaretskii <address@hidden>, 
> address@hidden
> Bcc: address@hidden
> 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?



reply via email to

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