How to edit history substitution in [t]csh
I want to recall an old command line (from within the [t]csh), and then edit it before executing.
What i don't want to do: recall, edit, and execute in one go ('cos i can't remember my complicated command line in sufficient detail to trust a 'blind' edit)
Sure, i could just use the up-arrow key and trawl through a million old lines looking for the right one -- but oops, my attention wandered and i missed the line i wanted.
So what i really want is something *like*:
!man : p
(sorry, had to put in some spacing to stop getting an unwanted emoji!), but with the recalled line actually as the command line, waiting for my edit (and not just printed out and returned to the prompt, which is what the above invocation does). I can't see how to do this from the man page, or the threads...but i think i'm probably just missing something obvious....?
Thanks
ian
|