Re: BUG #3054: getopt_long () misbehaviour

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Tux" <h(dot)m(dot)brand(at)xs4all(dot)nl>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3054: getopt_long () misbehaviour
Date: 2007-02-23 05:22:58
Message-ID: 11736.1172208178@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Tux" <h(dot)m(dot)brand(at)xs4all(dot)nl> writes:
> Might be some deep down misbehaving system library, but on HP-UX 11.00 (not
> on 11.11, and/or 11.23) getopt_long () misbehaves in that it causes all
> command line utilities to se the program name as the first argument,

Hmm. The Single Unix Spec,
http://www.opengroup.org/onlinepubs/007908799/xsh/getopt.html
saith

> The variable optind is the index of the next element of the argv[]
> vector to be processed. It is initialised to 1 by the system, ...

so it's extremely hard to see how your report demonstrates anything
except that HPUX 11.00 is broken. I'm not very interested in
memorializing a hack workaround for a bug in a libc version that HP
obsoleted years ago...

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2007-02-23 05:25:17 Re: BUG #3039: install completely but can't connect to server
Previous Message Tom Lane 2007-02-23 04:54:08 Re: BUG #3037: strange behave of CHECK constraint