[Xquartz-dev] 2.3.2_rc4

Cameron Simpson cs at zip.com.au
Sat Dec 20 14:17:03 PST 2008


On 20Dec2008 00:55, Harald Hanche-Olsen <hanche at math.ntnu.no> wrote:
| + 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.

See the revised script in the other branch of this thread for an
improved approach.

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

I'm going to investigate this further today. Cheers,
-- 
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/


More information about the Xquartz-dev mailing list