Re: \prompt for psql

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: \prompt for psql
Дата
Msg-id 20070208100156.GE27377@svr2.hagander.net
обсуждение исходный текст
Ответ на Re: \prompt for psql  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: \prompt for psql  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-patches
On Thu, Feb 08, 2007 at 10:17:19AM +0100, Peter Eisentraut wrote:
> Chad Wagner wrote:
> > This adds the ability to "prompt" for internal variable input, below
> > are examples:
> >
> > test=# \prompt x
> > Enter value for "x": 3
>
> You can do this already approximately so:
>
> \echo -n 'Enter value: '
> \set x `read && echo $REPLY`
>
> Maybe one command is better, though.

That also requires a "reasonable shell", which all platforms don't
have...

//mha

В списке pgsql-patches по дате отправления:

Предыдущее
От: "Gurjeet Singh"
Дата:
Сообщение: Re: \prompt for psql
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: \prompt for psql