pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid reading ~/.inputrc in tab-completion test, and revert othe
Date: Sun, 05 Jan 2020 02:33:41 +0000
Message-ID: <E1invjZ-0005Fx-5e@gemulon.postgresql.org> (raw)

Avoid reading ~/.inputrc in tab-completion test, and revert other changes.

The true explanation for Peter Geoghegan's trouble report turns out
to be that he has a ~/.inputrc that affects readline's behavior
enough to break this test.  Prevent readline from reading that file.

Also, the best way to prevent TERM from affecting the results seems
to be to unset it altogether, not to set it to "xterm".  The latter
choice licenses readline to emit xterm escape sequences, and there's
a lot of variation in exactly what it will emit.

Revert changes that attempted to account exactly for xterm escape
sequences.  We shouldn't need that with TERM unset, and it was not
looking like a maintainable solution anyway.

Discussion: https://postgr.es/m/23181.1578167938@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/48e03583cd373ce67827f4d8a99dcef8242364b0

Modified Files
--------------
src/bin/psql/t/010_tab_completion.pl | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)



Message-ID: <E1invjZ-0005Fx-5e@gemulon.postgresql.org>
Permalink:  ../E1invjZ-0005Fx-5e@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1invjZ-0005Fx-5e@gemulon.postgresql.org

 · 

reply

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Avoid reading ~/.inputrc in tab-completion test, and revert othe
  In-Reply-To: <E1invjZ-0005Fx-5e@gemulon.postgresql.org>
  References: <E1invjZ-0005Fx-5e@gemulon.postgresql.org>

* 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