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:24:29 |
Message-ID: | 200607191824.k6JIOTA05904@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:
> > * From http://www.computerhope.com/cmd.htm:
> > *
> > * 1. If all of the following conditions are met, then quote characters
> > * on the command line are preserved:
> > *
> > * - no /S switch
> > * - exactly two quote characters
> > * - no special characters between the two quote characters, where special
> > * is one of: &<>()@^|
> > * - there are one or more whitespace characters between the the two quote
> > * characters
> > * - the string between the two quote characters is the name of an
> > * executable file.
>
> 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:
* Win32 needs double quotes at the beginning and end of system()
* strings. If not, it gets confused with multiple quoted strings.
* It also requires double-quotes around the executable name and
* any files used for redirection. Other args can use single-quotes.
--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-07-19 18:29:23 | Re: plPHP and plRuby |
Previous Message | Peter Eisentraut | 2006-07-19 17:51:57 | Re: plPHP and plRuby |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-07-19 18:34:39 | Re: pg_regress breaks on msys |
Previous Message | Tom Lane | 2006-07-19 17:14:38 | Re: pg_regress breaks on msys |