bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dr. Evil typed sleep 666; rm -rf /


From: Mike Frysinger
Subject: Re: Dr. Evil typed sleep 666; rm -rf /
Date: Mon, 11 Feb 2008 12:45:14 -0500
User-agent: KMail/1.9.7

On Monday 11 February 2008, address@hidden wrote:
> Your attention is drawn to the current thread, a small sample of which is:
>
> Newsgroups: comp.unix.shell
> Subject: Re: Dr. Evil typed sleep 666; rm -rf /
> Date: 11 Feb 2008
>
> >bash is the only shell that will run "rm" if you interrupt
> >"sleep" with C-c.
> >
> >>All the other shells including the Bourne shell, ksh88, ksh93,
> >>pdksh, zsh, csh, tcsh, rc, es and their derivatives will not
> >>unless Dr. Evil has installed a trap on SIGINT.
> >>
> >>With bash, you'll have to kill bash from another shell.
> >
> > Bug or feature?

correct behavior.  if you want the other behavior, you should have used:
sleep 666 && rm -rf /
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]