[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    Re: [gentoo-dev] rm tragedies: was how to clean the "/tmp" dir
From:       Georgi Georgiev <chutz () gg3 ! net>
Date:       2004-05-31 9:29:51
Message-ID: 20040531092951.GB7614 () lion ! gg3 ! net
[Download RAW message or body]

maillog: 31/05/2004-10:59:29(+0200): Bernd Petrovitsch types
> On Sun, 2004-05-30 at 08:10, Georgi Georgiev wrote:
> > maillog: 29/05/2004-22:31:06(-0700): Mike Lundy types
> > > On Saturday 29 May 2004 20:10, Georgi Georgiev wrote:
> > > > How do you propose "rm" to prevent you from deleting stuff in your
> > > > homedir? Do you mean that it should warn you that the parameter you
> > > > have given is your homedir, or that it should be changed to warn the
> > > > user who types "rm -rf *"? The latter is quite impossible to
> > > > accomplish.
> > > 
> > > mike@levy:~/blah> rm *
> > > zsh: sure you want to delete all the files in /home/mike/blah [yn]? y
> > > 
> > > Zsh does this by default. :)
> > 
> > The suggestion was to fix "rm", not the shell. This zsh feature looks cute
> > though.
> 
> With the simple problem, that `rm` doesn't see the *.

Which is exactly why I said that it is impossible in the first place.

-- 
/\   Georgi Georgiev   /\ Nearly all men can stand adversity, but if   /\
\/    chutz@gg3.net    \/ you want to test a man's character, give him \/
/\  +81(90)6266-1163   /\ power. -- Abraham Lincoln                    /\

--
gentoo-dev@gentoo.org mailing list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic