> 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.)
