Lists: | Postg토토 사이트 순위SQL : |
---|
From: | Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com> |
---|---|
To: | 'Bruce Momjian' <pgman(at)candle(dot)pha(dot)pa(dot)us>, Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | pgsql-hackers-win32 <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: pg_ctl start broken on windows |
Date: | 2004-06-11 16:35:22 |
Message-ID: | A02DEC4D1073D611BAE8525405FCCE2B55F4AB@harris.memetrics.local |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | Postg토토 사이트 순위SQL : |
Bruce Momjian writes:
> I did a lot of poking around in MinGW and found some basic
> rules. First,
> MinGW's system() can't use single quotes for the executable
> name or any
> file used in redirection (as you showed above). Second, it gets
> confused with multiple double-quoted strings. The fix is to add a
> double-quote to the beginning and end of the system string,
> so a typical
> system string becomes:
>
> system("\"\"ls\" 'a' 'b c' > \"out\"\");
>
> Single quotes are fine for arguments.
>
> The applied patch makes this change and documents the behavior. Would
> folks test these changes on Win32 please?
FWIW, that's pretty much what I've been using.
Cheers,
Claudio
---
Certain disclaimers and policies apply to all email sent from Memetrics.
For the full text of these disclaimers and policies see
<a
href="http://www.memetrics.com/emailpolicy.html">http://www.memetrics.com/em
ailpolicy.html</a>
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com> |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers-win32 <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: pg_ctl start broken on windows |
Date: | 2004-06-11 16:47:43 |
Message-ID: | 200406111647.i5BGlhp01370@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 |
Claudio Natoli wrote:
>
> Bruce Momjian writes:
> > I did a lot of poking around in MinGW and found some basic
> > rules. First,
> > MinGW's system() can't use single quotes for the executable
> > name or any
> > file used in redirection (as you showed above). Second, it gets
> > confused with multiple double-quoted strings. The fix is to add a
> > double-quote to the beginning and end of the system string,
> > so a typical
> > system string becomes:
> >
> > system("\"\"ls\" 'a' 'b c' > \"out\"\");
> >
> > Single quotes are fine for arguments.
> >
> > The applied patch makes this change and documents the behavior. Would
> > folks test these changes on Win32 please?
>
> FWIW, that's pretty much what I've been using.
Yes, you were the person who originally suggested the extra quotes, and
I found it documented here:
http://home.earthlink.net/~rlively/MANUALS/COMMANDS/C/CMD.HTM
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073