Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ye9RF-0000Er-K5 for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Apr 2015 21:47:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Ye9RE-0004zL-So for pgsql-bugs@arkaria.postgresql.org; Fri, 03 Apr 2015 21:47:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Ye9RD-0004we-8c for pgsql-bugs@postgresql.org; Fri, 03 Apr 2015 21:47:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Ye9RA-0003CA-7J for pgsql-bugs@postgresql.org; Fri, 03 Apr 2015 21:47:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t33LlVUi002738; Fri, 3 Apr 2015 17:47:31 -0400 From: Tom Lane To: Michael Paquier cc: Peter Eisentraut , pgsql-bugs@postgresql.org Subject: Re: src/port/getopt_long.c lossy with arguments having no option characters In-reply-to: References: <28931.1428070107@sss.pgh.pa.us> <551EEE5A.10709@gmx.net> Comments: In-reply-to Michael Paquier message dated "Sat, 04 Apr 2015 06:41:59 +0900" Date: Fri, 03 Apr 2015 17:47:31 -0400 Message-ID: <2737.1428097651@sss.pgh.pa.us> 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 Michael Paquier writes: > On Sat, Apr 4, 2015 at 4:47 AM, Peter Eisentraut wrote: >> 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. > Well, OK. Then we had better update a bit the TAP tests of initdb and > createdb because they break on any platform which is not compliant > with that. If those tests are dependent on behavior we don't document as allowed, I think we should change the tests. Want to send a patch? regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs