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: [email protected], [email protected], [email protected]
> Bcc: [email protected]
> Date: Sun, 06 May 2012 20:56:54 +0200
> 
> Eli Zaretskii wrote:
> > When % does need to be quoted, it cannot be in the way on which
> > quotearg's design is based, because "%FOO%" will still expand the
> > variable.
> 
> How does % need to be quoted, then? Can you find out, please?

Like this:

  % => "%"

IOW, if you have % characters in a string, each such character should
be quoted separately.  Thus, %Path% is quoted as "%"Path"%".

(Actually, it's enough to quote only the first %, if we can find a
simple enough algorithm to do that.)
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.