From: Tom Lane <tgl@sss.pgh.pa.us>
To: apyhalov@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15705: psql autocompletion is not always correct with latest libedit
Date: Tue, 19 Mar 2019 17:30:30 -0400
Message-ID: <31241.1553031030@sss.pgh.pa.us> (raw)
In-Reply-To: <15705-bbf672d22b97f8e0@postgresql.org>
References: <15705-bbf672d22b97f8e0@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> 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<TAB>" I see:
>> create user test encrypted\ password
> (note \ before space)
> The issue seems to be in
> https://github.com/NetBSD/src/commit/47081400d868e1d6dd5629bea97c599c48404839
> - 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, apyhalov@gmail.com
Subject: Re: BUG #15705: psql autocompletion is not always correct with latest libedit
In-Reply-To: <31241.1553031030@sss.pgh.pa.us>
References: <15705-bbf672d22b97f8e0@postgresql.org> <31241.1553031030@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox