[Xquartz-dev] 2.3.2_rc4

Harald Hanche-Olsen hanche at math.ntnu.no
Fri Dec 19 15:55:35 PST 2008


+ Cameron Simpson <cs at zip.com.au>:

> We would need to check the bash's %q escaping is suitable for [t]csh and
> es and rc. It should be good for all the Bourne shells.

It doesn't escape the equals sign. So it doesn't work for es and rc.
In fact, it doesn't even work for the Bourne shells, should an equals
sign appear in the zeroth argument of the command that is being built.
Not that this is likely to happen in practice, but you're aiming for a
100% solution here, right? If so, it seems you have trouble with
newlines too: %q turns a newline into \n, but \n used in an argument
becomes just plain n AFAICT. I haven't investigated other control
characters.

- Harald


More information about the Xquartz-dev mailing list