Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Enable/disable (was Re: Enhanced shell)
- X-seq: zsh-workers 15464
- From: "Nadav Har'El" <nyh@xxxxxxxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: Enable/disable (was Re: Enhanced shell)
- Date: Tue, 24 Jul 2001 01:00:52 +0300
- Cc: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Hebrew-date: 4 Av 5761
- In-reply-to: <1010723163850.ZM14004@xxxxxxxxxxxxxxxxxxxxxxx>; from schaefer@xxxxxxxxxxxxxxxxxxxxxxx on Mon, Jul 23, 2001 at 04:38:50PM +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20010722224707.BD7621428E@xxxxxxxxxxxxxxxxxxxxxxxx> <3B5C06E6.FFFCCFCC@xxxxxxxxxxxxx> <20010723150019.A25511@xxxxxxxxxxxxxxxxxxxxxxxxx> <1010723163850.ZM14004@xxxxxxxxxxxxxxxxxxxxxxx>
On Mon, Jul 23, 2001, Bart Schaefer wrote about "Enable/disable (was Re: Enhanced shell)":
> } These are useful for restricted-shell mode, when you sometimes want to
> } disable builtins (e.g., the "read" builtin allows the restricted user to
> } read files that they shouldn't).
>
> As of 4.0.1, `builtin read' will run `read' even after `disable read'.
> Maybe we need to rethink that.
Even if builtin's behavior remains, it's not so terrible, because somebody
who wants to disable a builtin like read will just need to also disable
"builtin", as well as (obviously) the "enable" command (or the restricted user
will be able to reenable the command).
But now that I think of it, does zsh have restricted-shell capabilities at
all? Zsh has been my favorite shell for the last 8 years or so, but when I
needed a restricted shell, I went with pdksh or bash 2. I don't know why...
Perhaps the words "Zsh" and "restricted" just didn't sound right together :)
--
Nadav Har'El | Tuesday, Jul 24 2001, 4 Av 5761
nyh@xxxxxxxxxxxxxxxxxxx |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |I don't eat snails. I prefer fast food.
http://nadav.harel.org.il |
Messages sorted by:
Reverse Date,
Date,
Thread,
Author