Live data from Hacker News

Suicide Linux

qntm.org

61–70 of 135 posts

Re: Suicide Linux

#64
post #6

a less destructive version of this is to install `sl` on your linux or mac.

installed and checked the man page, hmm 'flies like the galaxy express 999' wonder what that is

$ ls -F

dammit!

$ sl -F

So I guess it's corrected my typos already :)

Re: Suicide Linux

#65

On Illumos rm -rf / does nothing. POSIX says that removing / has undefined behavior, so the obviously smart (useful, user-friendly, GOOD) thing to do is to do nothing, as that fits "undefined behavior".

That's quite funny... but ultimately futile. It doesn't say what happens if you say "DROP TABLE xyz WHERE...ohshit". (The bit is because you're used to doing that in your preferred SQL-DB editor.) One should NEVER do anything non-scripted on a production system. ALWAYS enter it into a file and then do the "run-sql-from-a-file" command. EDIT: Yes, I also realize that "rm -rf /" can theoretically happen if you have a b…

Protecting against every damned footgun is not possible. But some footguns blow users' feet off so often (this one because shell scripting is so tricky and dangerous) that it's est to do something about it.

Re: Suicide Linux

#66
post #51

Earlier quoted context omitted.

Just pipe the output through cat. By default, the "pipefail" option is not set, so echo foo | grep bar | cat is successful. Of course, this works for any command.

Alternatively and less wastefully: echo foo | grep bar || true

Alternatively and shorter:

    echo foo | grep bar || :

Re: Suicide Linux

#67
It would be nice for someone to develop a suicide-g++. Whenever you compile a program that results in Undefined Behavior, the execution of it will wipe your disk.

Re: Suicide Linux

#68
post #50

Just have to mention, since I recognize the domain, that Sam Hughes has some excellent science fiction freely available in a serialized form here as well. Well worth investigating.

Don't miss his work at SCP wiki, either. http://www.scp-wiki.net/qntm-s-author-page

Visiting that page on mobile asked for permission to record audio and take photos...
Post reply on HN