On Sat, 2012-09-29 at 13:33 -0400, Andrew Dunstan wrote: > On 09/29/2012 01:06 PM, Tom Lane wrote: > > Andrew Dunstan <and...@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"? > > On one of my machines uname -s return MINGW32_NT5.1 > > On another it says MINGW32_NT6.1
You could do case $testhost in MINGW*) something;; Or call config.guess, which exists more or less for this purpose. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers