Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6MJj-0005yx-VW for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Mar 2019 21:30:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h6MJh-0004QL-Ox for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Mar 2019 21:30:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6MJh-0004Q9-IW for pgsql-bugs@lists.postgresql.org; Tue, 19 Mar 2019 21:30:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h6MJe-0008JI-Ec for pgsql-bugs@lists.postgresql.org; Tue, 19 Mar 2019 21:30: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 x2JLUUw2031242; Tue, 19 Mar 2019 17:30:30 -0400 From: Tom Lane To: apyhalov@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15705: psql autocompletion is not always correct with latest libedit In-reply-to: <15705-bbf672d22b97f8e0@postgresql.org> References: <15705-bbf672d22b97f8e0@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Tue, 19 Mar 2019 19:17:32 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31240.1553031030.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 19 Mar 2019 17:30:30 -0400 Message-ID: <31241.1553031030@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Bug reporting form writes: > After updating libedit from 20170329-3.1 to 20181209-3.1 we see the > following issue in psql: > while typing "create user test encr" I see: >> create user test encrypted\ password = > (note \ before space) > The issue seems to be in > https://github.com/NetBSD/src/commit/47081400d868e1d6dd5629bea97c599c484= 04839 > - now libedit treats input as file names and escapes it accordingly. I think you need to complain to the libedit authors, not us. While I can't find any API spec anywhere for libedit's completion functionality, it seems to be meant to match GNU readline, and the GNU docs are pretty clear that the results of rl_attempted_completion_function should be taken literally. I think they injected the extra quoting at the wrong level ... regards, tom lane