I would like to know if it is possible to disable the
shell escape option in vi. I am trying to fork vi from
my program and I dont want anybody to use "!" or ":sh"
and execute shell commands. Any ideas??
or are there any other unix editors which wouldn't allow
this?
TIA
Arun
(aru...@nortel.ca)
Well, for "standard vi" there seems to be no way.
However, some of the vi clones allow a shell restriction.
(Don't know which clone offers what exactly.)
Too bad that you will thus lose filtering. :-(
Anyway, a "shell restricted compile option" is on the wishlist for Vim.
> are there any other unix editors which wouldn't allow this?
I think there were some. I am sure some people here will tell you.
Sven
Arun Kumar Krishna <aru...@nortel.ca> wrote:
>I would like to know if it is possible to disable the shell escape
>option in vi. I am trying to fork vi from my program and I dont want
>anybody to use "!" or ":sh" and execute shell commands. Any ideas?? or
>are there any other unix editors which wouldn't allow this?
I'm not sure but I think nvi has a 'secure' option (-R ou -S) that does
exactly what you want;
--
Otavio Exel /<\oo/>\
oe...@economatica.com.br
Yeah,
-S Run with the secure edit option set, disallowing
all access to external programs.
--
Matthias Buelow * Boycott Micro$oft - see http://www.vcnet.com/bms/ *