[Top][All Lists]
[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
- Re: quotearg.c's shell_quoting_style and MinGW, (continued)
Re: quotearg.c's shell_quoting_style and MinGW, Paul Eggert, 2012/05/06
- Re: quotearg.c's shell_quoting_style and MinGW, Eli Zaretskii, 2012/05/06
- Re: quotearg.c's shell_quoting_style and MinGW, Paul Eggert, 2012/05/06
- Re: quotearg.c's shell_quoting_style and MinGW, Eli Zaretskii, 2012/05/06
- Re: quotearg.c's shell_quoting_style and MinGW, Paul Eggert, 2012/05/06
- Re: quotearg.c's shell_quoting_style and MinGW, Eli Zaretskii, 2012/05/06
- Re: quotearg.c's shell_quoting_style and MinGW, Paul Eggert, 2012/05/06
- Re: quotearg.c's shell_quoting_style and MinGW, Bruno Haible, 2012/05/06
- Re: quotearg.c's shell_quoting_style and MinGW,
Bruno Haible <=
- Re: quotearg.c's shell_quoting_style and MinGW, Paul Eggert, 2012/05/06
- Re: quotearg.c's shell_quoting_style and MinGW, Bruno Haible, 2012/05/06
Re: quotearg.c's shell_quoting_style and MinGW, Eli Zaretskii, 2012/05/06
Re: quotearg.c's shell_quoting_style and MinGW, Bruno Haible, 2012/05/06
Re: quotearg.c's shell_quoting_style and MinGW, Eli Zaretskii, 2012/05/06
Re: quotearg.c's shell_quoting_style and MinGW, Bruno Haible, 2012/05/06
new module 'system-quote', Bruno Haible, 2012/05/08
Re: new module 'system-quote', Bruno Haible, 2012/05/08
Re: new module 'system-quote', Eli Zaretskii, 2012/05/09
Re: new module 'system-quote', Bruno Haible, 2012/05/09