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: | 200203122143.g2CLhTc08817@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
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 configure.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 | http://candle.pha.pa.us
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
Attachment | Content-Type | Size |
---|---|---|
unknown_filename | text/plain | 624 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Eiji Tokuya | 2002-03-13 11:07:23 | Re: Added Encoding |
Previous Message | Elliot Lee | 2002-03-12 20:34:30 | Re: postgresql-7.2b3-betterquote.patch |