Re: pg_regress breaks on msys

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_regress breaks on msys
Date: 2006-07-19 18:45:58
Message-ID: 200607191845.k6JIjwY08539@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
> Bruce Momjian <bruce(at)momjian(dot)us> writes:
> >> Hmm, that suggests that our code works *only* if there's white space in
> >> all the paths !? Seems unlikely that this description is fully correct,
> >> or we'd have had problems before.
>
> > It is saying _all_ these have to be true, and we already quote
> > executables, and the string, so we always have more than two quotes:
>
> Well, the description is about as clear as mud, because it's not saying
> which two quote characters it's talking about. I read it as talking
> about the two quote characters around any one word/pathname. If you
> think it's talking about the two quote characters we put around the
> whole command (the SYSTEMQUOTE dodge), then we're certainly going to
> fail the "no special characters" test, because all these commands use
> I/O redirection symbols.

Right, the top says:

* 1. If all of the following conditions are met, then quote characters
* on the _command_ _line_ are preserved:

It is talking about the entire command string, because this is system()
and there is no distinction between commands and arguments --- it is one
big string.

--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-07-19 18:51:31 Re: pg_regress breaks on msys
Previous Message korry 2006-07-19 18:44:30 Re: Loading the PL/pgSQL debugger (and other plugins)

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-07-19 18:51:31 Re: pg_regress breaks on msys
Previous Message Tom Lane 2006-07-19 18:40:17 Re: pg_regress breaks on msys