[Gllug] a more intelligent shell

SteveC steve at asklater.com
Mon May 15 15:02:29 UTC 2006


* @ 15/05/06 12:25:42 PM addw at phcomp.co.uk wrote:
> On Mon, May 15, 2006 at 12:22:56PM +0100, Bruce Richardson wrote:
> > On Mon, May 15, 2006 at 11:37:05AM +0100, David wrote:
> > > On Monday, 15 May 2006, Bruce Richardson wrote:
> > > >A much safer approach than having a blacklist of dangerous commands
> > > >would be to have a whitelist of safe commands that could be included in
> > > >corrections.
> > > 
> > > ls is safe, right? So "<something> |xargs rm" can be corrected to "ls
> > > | xargs rm". I can't see this working...
> > 
> > As I said, I wouldn't trust it.
> 
> Quite.
> 
> Unix has always been a system that does what you ask it to do,
> the assumption has always been that the user knows what they are doing.
> 
> The only fix here is to 'fix the user', ie learn to type correctly.

Ah, if only we were all perfect! :-)

Thanks for all the comments, I'll give zsh a go. In a way it's sort of
strange that there are so many innovative things going on in terms of UI
like Apple's Expose and Pages, various AJAX sites or things like Beagle
but the cli remains relatively static.

Of course there are very good reasons for that, like not being
confronted with a different shell syntax on every terminal you use.

I'd like to see the kind of transition (to a new, better shell) I felt
when moving from pine to mutt, but without having to configure 300
things that should just have sensible defaults a-la opinionated
programming and rails.

Anyway, this is kind of related, and a fun if not terribly useful thing:

http://interconnected.org/home/2006/03/08/playsh

have fun,

SteveC steve at asklater.com http://www.asklater.com/steve/
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list