Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

shell escape in "vi"

1 view
Skip to first unread message

Arun Kumar Krishna

unread,
Nov 26, 1997, 3:00:00 AM11/26/97
to

Hi,

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)

Sven Guckes

unread,
Nov 26, 1997, 3:00:00 AM11/26/97
to

aru...@nortel.ca (Arun Kumar Krishna):

> 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??

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

--
http://www.vim.org/

Otavio Exel

unread,
Nov 27, 1997, 3:00:00 AM11/27/97
to

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

Matthias Buelow

unread,
Dec 1, 1997, 3:00:00 AM12/1/97
to

>I'm not sure but I think nvi has a 'secure' option (-R ou -S) that does
>exactly what you want;

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/ *

0 new messages