Re: Unportable use of uname in pg_upgrade test script

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Unportable use of uname in pg_upgrade test script
Дата
Msg-id 3328.1348938372@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Unportable use of uname in pg_upgrade test script  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: Unportable use of uname in pg_upgrade test script  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> The trouble with uname -s is that its output is a bit variable. I think 
> this will work:

>      testhost=`uname -a | sed 's/.* //'`

What do you mean by "a bit variable"?  And why would that fix it?  The
output of -a is *defined* to be the same as -s followed by other stuff.
The reference page I'm looking at also points out that the -s string
can contain embedded blanks.
        regards, tom lane



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: is JSON really "a type" (Re: data to json enhancements)
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Unportable use of uname in pg_upgrade test script