[Gllug] a more intelligent shell

Alain Williams addw at phcomp.co.uk
Mon May 15 11:25:42 UTC 2006


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.

(Not meant to be a rude comment)

-- 
Alain Williams
Parliament Hill Computers Ltd.
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/

#include <std_disclaimer.h>
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list