Re: psql possible TODO

From: Stephen Harris <lists(at)spuddy(dot)org>
To: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: psql possible TODO
Date: 2006-12-05 22:08:16
Message-ID: 20061205220816.GA31948@pugwash.spuddy.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Dec 05, 2006 at 06:55:04PM -0300, Alvaro Herrera wrote:
> +1 on the !<num>, but I agree with Tom that the ! had better be a \
> command (and \! is already taken).

Extend \r maybe, so \r on it's own clears the buffer whereas \r ###
will load it with history entry ###. Mnemonic; r=retrieve command

Silly: You could even do \r xyz and load the buffer with the last line
beginning xyz

(this would parallel the "r" command in Korn Shell which does
history in this way; "r 10" would rerun history entry 10; "r ls" would
redo the last ls command).

--

rgds
Stephen

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2006-12-05 22:10:44 Re: psql possible TODO
Previous Message Joshua D. Drake 2006-12-05 22:05:20 Re: psql possible TODO