In article <tjm0oh$6g1a$
[email protected]>,
Janis Papanagnou <
[email protected]> wrote:
...
I've gotten in the habit of doing dd (assuming just a single line in the
buffer) before exiting (if I don't want anything to be executed).
Yes, either that, or, (if the typed command will have no bad effects)
just accept the error message.
Maybe it should be possible to configure the shell to always ask for confirmation (i.e., an "Are you sure?" prompt) before going ahead after you exit the editor.
Incidentally, I agree that the best solution would be if vi (which is
usually vim these days) could return some non-zero exit code in this
situation. I'll bet that could be done with some fancy vim scripting;
whether it would be worth the trouble or not is another matter.
It would be interesting to know if the shell would recognize the non-zero
exit code and do the right thing. I'll have to test that at some point (in bash).
--
I'm building a wall.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)