Re: psql possible TODO - Mailing list pgsql-hackers

From Stephen Harris
Subject Re: psql possible TODO
Date
Msg-id 20061205220816.GA31948@pugwash.spuddy.org
Whole thread Raw
In response to Re: psql possible TODO  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: psql possible TODO
List 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


pgsql-hackers by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: psql possible TODO
Next
From: "Joshua D. Drake"
Date:
Subject: Re: psql possible TODO