Re: BUG #3054: getopt_long () misbehaviour - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #3054: getopt_long () misbehaviour
Date
Msg-id 11736.1172208178@sss.pgh.pa.us
Whole thread Raw
In response to BUG #3054: getopt_long () misbehaviour  ("Tux" <h.m.brand@xs4all.nl>)
List pgsql-bugs
"Tux" <h.m.brand@xs4all.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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #3037: strange behave of CHECK constraint
Next
From: Tom Lane
Date:
Subject: Re: BUG #3039: install completely but can't connect to server