X-Original-To: pgsql-patches-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 00BC99DD781 for ; Fri, 2 Dec 2005 10:14:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 15453-02-5 for ; Fri, 2 Dec 2005 10:14:37 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id CBFBB9DD7A8 for ; Fri, 2 Dec 2005 10:14:34 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id jB2EEVPg002199; Fri, 2 Dec 2005 09:14:31 -0500 (EST) To: Peter Eisentraut cc: Bruce Momjian , pgsql-patches@postgresql.org, "Jim C. Nasby" , Andrew Dunstan , Seneca Cunningham Subject: Re: [HACKERS] Should libedit be preferred to libreadline? In-reply-to: <200512020928.20375.peter_e@gmx.net> References: <200512020358.jB23wAY17188@candle.pha.pa.us> <200512020928.20375.peter_e@gmx.net> Comments: In-reply-to Peter Eisentraut message dated "Fri, 02 Dec 2005 09:28:19 +0100" Date: Fri, 02 Dec 2005 09:14:31 -0500 Message-ID: <2198.1133532871@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.002 required=5 tests=[AWL=0.002] X-Spam-Score: 0.002 X-Spam-Level: X-Archive-Number: 200512/37 X-Sequence-Number: 17996 Peter Eisentraut writes: > I'm concerned that this still gives nondeterministic behavior. There's > no way to say, "I want readline, period" or "I want libedit, period". > I'd prefer simple --with-readline and --with-libedit, giving one turns > off the other, giving both is an error. OTOH that doesn't provide a way to express "I'll take either". Given that I'll-take-either has so far satisfied 99.44% of users, getting rid of it doesn't seem like the best plan. It might be possible to set things up so that you can specify "I'll take either" by writing both switches, and further that the order in which you write the switches determines the preference --- though I'm not entirely sure how to do the latter within the autoconf framework. regards, tom lane