Re: \prompt for psql

From: "Chad Wagner" <chad(dot)wagner(at)gmail(dot)com>
To: "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: \prompt for psql
Date: 2007-02-08 11:25:31
Message-ID: 81961ff50702080325r12d536bai4aaa478721e3ffb0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

On 2/8/07, Peter Eisentraut <peter_e(at)gmx(dot)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.

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2007-02-08 11:25:40 Re: \prompt for psql
Previous Message Magnus Hagander 2007-02-08 10:01:56 Re: \prompt for psql