: >: Currently, the 'vi' editor allows its user to execute a shell command by
: >: using ":!". I am searching a way to prevent this.
: >: 1. Is there any method to disable this function ?
: >: 2. If not, is there any recommendation for another unix editor that
: >: do not has this facility ?
: >: Help will be very much appreciated !!!
: >: Many thanks !!!
: >One thing you can do is put the following line in the .exrc file:
: >set shell=/dev/null
: >This will produce an error message when the user attempts to execute a
: >shell command, something like: "Invalid SHELL value: /dev/null". The
: >user simply presses Enter to erase the error and return to the normal mode.
: >One final note, you should remove all write permissions to .exrc so that
: >the user can not vi the file and remove the line.
: This was not a very good idea, I'm afraid. The user can simply write
: :set shell=/bin/csh
: to get around this.
Good point, don't know why I didn't think of that. Thanks for bringing
it to his attention.
-------------------------------------------------------------------------
Steve Thompson | The person who says it cannot be done