Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ye7ZG-0004JU-3h for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Apr 2015 19:47:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Ye7ZF-00010b-IN for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Apr 2015 19:47:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Ye7ZE-0000yX-3j for pgsql-bugs@postgresql.org; Fri, 03 Apr 2015 19:47:48 +0000 Received: from mout.gmx.net ([212.227.15.19]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Ye7Z9-0001zP-Ht for pgsql-bugs@postgresql.org; Fri, 03 Apr 2015 19:47:47 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0Lev1D-1ZDyYF3DRP-00qmHC for ; Fri, 03 Apr 2015 21:47:40 +0200 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id CAE9520895 for ; Fri, 3 Apr 2015 15:47:35 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Fri, 03 Apr 2015 15:47:39 -0400 X-Sasl-enc: tPHvEHJui/ji+A1L2FvuYTY5Ko0SZJ9UYrZhGObEN718 1428090459 Received: from [192.168.1.117] (unknown [204.145.120.11]) by mail.messagingengine.com (Postfix) with ESMTPA id 14DD1C00013; Fri, 3 Apr 2015 15:47:39 -0400 (EDT) Message-ID: <551EEE5A.10709@gmx.net> Date: Fri, 03 Apr 2015 15:47:38 -0400 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Tom Lane , Michael Paquier CC: pgsql-bugs@postgresql.org Subject: Re: src/port/getopt_long.c lossy with arguments having no option characters References: <28931.1428070107@sss.pgh.pa.us> In-Reply-To: <28931.1428070107@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:Zmd6X8h7sIPaxLUHhggXUP7uU8qd+B8fHjrnNaE5I+HN4KMhJc0 6m6RmE+Fn+Mnar13JyATRyw7j1ayBUdovZd/sRXumF8Cqw5j8pm0lEPS2q1uoSEfBRXTat8 aIlaBH7MbWa+1Uono4aQAB/bmNfNUwxBjzHji3GqAy5bpnulQArjrmeE+5ncb7tmb/S3Nob MeOzDsTn5qc+IcH7IirqQ== X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 4/3/15 10:08 AM, Tom Lane wrote: > Michael Paquier writes: >> The implementation of getopt_long in src/port has some limitations, >> for example such commands do not work but they should: > > No, those should not work. You're too used to versions that don't insist > on switches-before-non-switch-arguments. Such behavior is an extension > that is not standard, It is true that options after non-option arguments are a GNU extension, but long options are also a GNU extension. So the behavior we provide is neither pure POSIX nor pure GNU. I can see how that would be confusing. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs