Re: quotearg.c's shell_quoting_style and MinGW

John Cowan <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs,gmane.comp.lib.gnulib.bugs
Message-ID <[email protected]>
Bruno Haible scripsit:

> How does % need to be quoted, then? Can you find out, please? This info
> would be useful both for Paul's proposal and for mine.

Strings of the form %FOO% in cmd.exe commands are expanded iff FOO is
an existing environment variable; otherwise, the string is left alone.
All other uses of % are likewise left alone.  This expansion is done
*before* quotation marks are interpreted, so there is no way to escape
it; you simply have to hope that you don't get hosed by it.

--
We are lost, lost.  No name, no business, no Precious, nothing.  Only empty.
Only hungry: yes, we are hungry.  A few little fishes, nassty bony little
fishes, for a poor creature, and they say death.  So wise they are; so just,
so very just.  --Gollum        [email protected]  http://ccil.org/~cowan
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.