Re: pg_ctl start broken on windows

Поиск
Список
Период
Сортировка
От Claudio Natoli
Тема Re: pg_ctl start broken on windows
Дата
Msg-id A02DEC4D1073D611BAE8525405FCCE2B55F4AB@harris.memetrics.local
обсуждение исходный текст
Ответ на pg_ctl start broken on windows  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: pg_ctl start broken on windows  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers-win32
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>

В списке pgsql-hackers-win32 по дате отправления:

Предыдущее
От: "Gary Doades"
Дата:
Сообщение: Re: pg_ctl start broken on windows
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_ctl start broken on windows