Re: Dr. Evil typed sleep 666; rm -rf /
- From: loki harfagr <loki@xxxxxxxxxxxxxxxxxxxxx>
- Date: 28 Jun 2008 09:55:35 GMT
On Sat, 28 Jun 2008 04:43:52 +0800, jidanni wrote:
Ah, .vh phony mail domain, bounced. Wonderful. Maybe use .invalid please
next time.
ouch, sorry, I used an old account on a secundary box and
didn't see I hadn't fixed the posting settings yet!
anyway, the .invalid will soon be invalid to use too, when
the icann will sell names by the pound, the existence of my
special header 'X-LaBrea:' should've given a hint ;-)
Please tell me which Debian package I should file the bug against.
Well, that'd be a question for a debian group, I have no idea but if you
have packages group like 'core' 'devs' or 'tty' or 'util-linux'
that'd be a start.
Some syscalls may be managed thru the glibc, I don't think that's the case
for tty but I'm no tty expert nor debian user...
My
stty settings are the same as yours. Thanks.
$ stty -g
4500:5:bf:8a3b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0
here are mine, quite the same:
2506:5:bf:8a3b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0
Bash man page too big. Can't find anything you mentioned.
that's because you started from the beginning ;D)
go directly towards the end and check in the "BUGS" section,
here's the excerpt I was thinking of:
--------
GNU Bash-3.1 2005 Dec 28
....
BUGS
....
Compound commands and command sequences of the form `a ; b ; c' are not handled gracefully when process sus-
pension is attempted. When a process is stopped, the shell immediately executes the next command in the
sequence. It suffices to place the sequence of commands between parentheses to force it into a subshell,
which may be stopped as a unit.
Commands inside of $(...) command substitution are not parsed until substitution is attempted. This will
delay error reporting until some time after the command is entered. For example, unmatched parentheses,
even inside shell comments, will result in error messages while the construct is being read.
--------
Often I issue such a 'sleep ...; command' to start my modem as I walk
over and turn on the power and go brush my teeth, only to then think
Wait, Stop, not Ready yet... and want to cancel...
Ah, then it really was a real-world exercise !?
Shooting the wire: ah... = kill -HUP. hmmm...
It'll work if you HUP the parent, of course it won't work if you just HUP
the "sleep" and it's not always an easy manoeuvre to fulfil while running
thru the room brushing your teeth :D)
Just think about doing it the safe way:
$ ( sleep 666; echo BOOM )
and you'll be able ^C or ^Z all your needs :-)
.
- References:
- Re: Dr. Evil typed sleep 666; rm -rf /
- From: Loki Harfagr
- Re: Dr. Evil typed sleep 666; rm -rf /
- From: jidanni
- Re: Dr. Evil typed sleep 666; rm -rf /
- Prev by Date: Re: backup script for a hosted MySQL database
- Next by Date: Re: arguments to a Bourne shell function
- Previous by thread: Re: Dr. Evil typed sleep 666; rm -rf /
- Next by thread: Re: Dr. Evil typed sleep 666; rm -rf /
- Index(es):
Relevant Pages
|