[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

edit-and-execute-command; minus the "execute" part?

From: Dabrien 'Dabe' Murphy
Subject: edit-and-execute-command; minus the "execute" part?
Date: Mon, 23 Aug 2010 15:17:03 -0400
User-agent: Postbox 1.1.5 (Macintosh/20100613)

Is it possible to "C-xC-e" /without/ immediately executing the resulting command?

To my mind, "editing" the buffer and "executing" it are two different things -- the latter having potentially dire consequences...

I'd prefer it if, after exiting my $EDITOR, bash simply stuffed the results back into my readline buffer. Particularly, if I decide to abandon my changes, I find it worrisome that the shell goes ahead and executes the previous command anyway. (I guess I've grown accustomed to SVN's behavior, for example, where if you don't make any changes to your commit message, it gives you the option to abort the entire transaction.)


:- Dabe

reply via email to

[Prev in Thread] Current Thread [Next in Thread]