Darn, long option emulation doesn't work on FreeBSD

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Darn, long option emulation doesn't work on FreeBSD
Date: 2000-11-06 21:18:23
Message-ID: Pine.LNX.4.21.0011062154230.776-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The long option emulation getopt(argc, argv, "...xy:-:") doesn't work on
FreeBSD (and who knows where else), it throws away options of the form
'--foo'. That means you cannot specify postmaster options like
--log-pids, etc. on the command line. Also, the --version option doesn't
work, which may cause initdb to fail for you.

So apparently we'll have to use an actual option letter for passing
runtime configuration parameters. Any suggestions? Already in use are

a A b B C d D e E f F i l L m M n N o O p P Q s S t v W x

'V' will be used as short form for "version". My early favourite is '-c'.
(Using non-letters is probably not portable either.)

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2000-11-06 21:25:33 Re: problems with configure
Previous Message Mikheev, Vadim 2000-11-06 20:56:10 RE: [COMMITTERS] pgsql/src/backend/access/transam (xact.c xlog.c)