Re: Unportable use of uname in pg_upgrade test script

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Unportable use of uname in pg_upgrade test script
Дата
Msg-id 4017.1348940787@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Unportable use of uname in pg_upgrade test script  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Exactly, the sed script pulls the last token from the line, which is 
> Msys on all my Mingw systems.

Perhaps that's "uname -v"?

> If you want to do it another way we could possibly pass the PORTNAME 
> from the global make file.

That might be safer.  The last few words of uname's output are
*completely* unstandardized (the spec says that implementation-defined
fields can be added to -a's output ...)
        regards, tom lane








































































> cheers

> andrew



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Unportable use of uname in pg_upgrade test script
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: pg_upgrade tests vs alter generic changes