Skip site navigation (1) Skip section navigation (2)

Re: support for POSIX 1003.1-2001 hosts

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Paul Eggert <eggert(at)twinsun(dot)com>
Cc: chriskl(at)familyhealth(dot)com(dot)au, pgsql-patches(at)postgresql(dot)org
Subject: Re: support for POSIX 1003.1-2001 hosts
Date: 2002-03-12 21:43:29
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
Paul Eggert wrote:
> > From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
> > Date: Tue, 12 Mar 2002 10:35:35 +0800
> > Importance: Normal
> > 
> > What's wrong with "head -n 1"?
> Nothing's wrong with it from a standards-compliance point of view.
> But I worry that "head -n 1" may not work on some older (pre-POSIX)
> hosts, as it did not work on Unix Version 7 hosts.  In contrast, "sed
> q" did work on those ancient hosts, so I figure "sed q" should be
> safer.  "sed 1q" should be equally good from a portability viewpoint,
> if you prefer.

I have made the 'sed 1q' change you suggested in, but not
in the docs because I thought it would be too confusing.  The sort
changes, however, were not embraced, as I suspected.  Certainly when we
hit a platform that doesn't understand sort +/-, we will need to make
that change.

  Bruce Momjian                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-patches by date

Next:From: Eiji TokuyaDate: 2002-03-13 11:07:23
Subject: Re: Added Encoding
Previous:From: Elliot LeeDate: 2002-03-12 20:34:30
Subject: Re: postgresql-7.2b3-betterquote.patch

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group