"Tux" <[EMAIL PROTECTED]> 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 ---------------------------(end of broadcast)--------------------------- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate