Re: \prompt for psql - Mailing list pgsql-patches

From Chad Wagner
Subject Re: \prompt for psql
Date
Msg-id 81961ff50702080325r12d536bai4aaa478721e3ffb0@mail.gmail.com
Whole thread Raw
In response to Re: \prompt for psql  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-patches
On 2/8/07, Peter Eisentraut <peter_e@gmx.net> wrote:
You can do this already approximately so:

\echo -n 'Enter value: '
\set x `read && echo $REPLY`

Maybe one command is better, though.

Yep, in fact that is more or less something similar that I suggested on pgsql-sql yesterday.  The only issue I had with it was it doesn't work for Windows and non-UNIX platforms.

pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: \prompt for psql
Next
From: "Chad Wagner"
Date:
Subject: Re: \prompt for psql