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: Bruno Haible
Subject: Re: quotearg.c's shell_quoting_style and MinGW
Date: Sun, 06 May 2012 21:34:43 +0200
User-agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; )

Here are two more proposals, designed to avoid the drawbacks of the
previous ones:

3) A new API

     /* Constructs a command line for the platform's command interpreter
        that executes argv[0] with the arguments argv[1...] and invokes
        popen() on it.  */
     FILE *popenv (const char * const *argv, const char *type);

     /* Constructs a command line for the platform's command interpreter
        that executes argv[0] with the arguments argv[1...] and invokes
        system() on it.  */
     int systemv (const char * const *argv);

4) A new API

     /* Constructs a command line for the platform's command interpreter
        that executes argv[0] with the arguments argv[1...].  */
     char *create_system_command (const char * const *argv);

These APIs would not break existing programs, would not do redundant
processing, would not be artificially limited, and would be usable without
any #ifs.

Bruno




reply via email to

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