Live data from Hacker News

Suicide Linux (2009)

qntm.org

61–70 of 73 posts

Re: Suicide Linux (2009)

#61
A fun way to play this game with less downside is to run `set -euo pipefail` in an interactive session. Then, whenever you execute a command that returns a non-zero exit code, your shell will exit immediately.

Unfortunately certain commands like `rg` will return non-zero by design when there are no matches, which could be an intentional outcome.

Re: Suicide Linux (2009)

#63

For those who aren't ready for Suicide Linux yet, there's `sl`, a command that mildly punishes you for not being able to type `ls`, available in most distros. sudo apt install sl

Years ago I installed this at work for new linux users as a prank. They will hate me forever.

Re: Suicide Linux (2009)

#64

A fun way to play this game with less downside is to run `set -euo pipefail` in an interactive session. Then, whenever you execute a command that returns a non-zero exit code, your shell will exit immediately. Unfortunately certain commands like `rg` will return non-zero by design when there are no matches, which could be an intentional outcome.

Just remember what those commands are, and to type a || or && next to them each time you run one.

' || echo$?' is a good option, if you care about the return value.

Re: Suicide Linux (2009)

#65
post #11

The name seems a little insensitive.

The side effect of trying to enforce this kind of sensitivity is that you make certain things taboo to talk about. And this is a good example of something that should be easy for someone to talk or even joke about because it makes dipping into that conversation much easier.

Douglas Crockford nearly got cancelled because he qualified JavaScript as "promiscuous". People not knowing what the word means plus having a sense of urgency about sensitivity can be a dangerous combination.

Re: Suicide Linux (2009)

#67
post #19

I distinctly remember a GCC patch that added `system("rm -Rf /")` on some undefined behavior conditions. But I can't find it right now.

Back in the day, a GHC release had a bug that deleted source files with errors in them: https://gitlab.haskell.org/ghc/ghc/-/issues/163. Which is pretty harsh as diagnostics go.

Re: Suicide Linux (2009)

#70

For those who aren't ready for Suicide Linux yet, there's `sl`, a command that mildly punishes you for not being able to type `ls`, available in most distros. sudo apt install sl

I've got 'sl' set to 'ls "$@" | rev'.
Post reply on HN