Re: proposal: alternative psql commands quit and exit

From: Geoff Winkless <pgsqladmin(at)geoff(dot)dj>
To: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Cc: Geoff Winkless <pgsqladmin(at)geoff(dot)dj>, Robert Haas <robertmhaas(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Everaldo Canuto <everaldo(dot)canuto(at)gmail(dot)com>, Chapman Flack <chap(at)anastigmatix(dot)net>, Vik Fearing <vik(dot)fearing(at)2ndquadrant(dot)com>, Stephen Frost <sfrost(at)snowman(dot)net>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: alternative psql commands quit and exit
Date: 2018-01-15 16:29:36
Message-ID: CAEzk6fcLtQh=QYE84ZTU5F153KBKwtz9KajqK7JWA226F=SS1A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 15 January 2018 at 16:16, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> wrote:
> Geoff Winkless wrote:
>> Can we not just say "ctrl-D to quit" instead of \q? Doesn't that work
>> everywhere?
>
> Not on Windows, as far as I know.

Well on Windows, Ctrl-C doesn't clear the input buffer either - it
quits the whole thing.

Perhaps different messages on different OSes? :)

Others point out (elsewhere) that Ctrl-D fails if there's anything
before it on the individual line, which is news to me. Is that a
readline thing?

Geoff

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2018-01-15 16:35:20 Re: Implementing SQL ASSERTION
Previous Message Stephen Frost 2018-01-15 16:18:57 Re: proposal: alternative psql commands quit and exit