Re: pg_ctl start broken on windows

Bruce Momjian <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.win32
Message-ID <[email protected]>
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
  [email protected]               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.