Live data from Hacker News

Suicide Linux (2009)

qntm.org

11–20 of 73 posts

Re: Suicide Linux (2009)

#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.

Re: Suicide Linux (2009)

#12
post #10
post #7

Earlier quoted context omitted.

I'm on my phone so I'm too lazy to dig for this, but I'm pretty sure they're talking about the bit of shell script that gets run if you type a command that isn't found in PATH. Fedora and Debian will both dive straight into searching apt/dnf for a matching package and ask "do you want to install this?" I imagine you could create a hook that gets run for any command failure, but again I'm on my phone so not sure.

I thought Ubuntu did that, but not Debian. Still, that's very different than what the author mentioned

Oh you might be right about Ubuntu vs Debian.. but I'm right about everything else I said. I went and looked at the source code.

Re: Suicide Linux (2009)

#13
post #7
post #2

> I suppose I should finally clear this up: The autocorrect functionality I originally described here was a feature of the first Linux systems I ever used, so I assumed it was how every Linux system worked by default. Since then I've come to understand that it's a completely optional extra doodad. What systems did this? I've never encountered one that I can recall.

I'm on my phone so I'm too lazy to dig for this, but I'm pretty sure they're talking about the bit of shell script that gets run if you type a command that isn't found in PATH. Fedora and Debian will both dive straight into searching apt/dnf for a matching package and ask "do you want to install this?" I imagine you could create a hook that gets run for any command failure, but again I'm on my phone so not sure.

It's https://packages.debian.org/sid/command-not-found

Re: Suicide Linux (2009)

#15
post #7
post #2

> I suppose I should finally clear this up: The autocorrect functionality I originally described here was a feature of the first Linux systems I ever used, so I assumed it was how every Linux system worked by default. Since then I've come to understand that it's a completely optional extra doodad. What systems did this? I've never encountered one that I can recall.

I'm on my phone so I'm too lazy to dig for this, but I'm pretty sure they're talking about the bit of shell script that gets run if you type a command that isn't found in PATH. Fedora and Debian will both dive straight into searching apt/dnf for a matching package and ask "do you want to install this?" I imagine you could create a hook that gets run for any command failure, but again I'm on my phone so not sure.

This is generally called a command-not-found handler and are a feature of all the major shells (though the exact details differ, the general idea is to define a function with a specific reserved name), and most majors distros have ones that can be installed, even if they aren't by default.

I wrote my own (much faster) such handler for Arch Linux. I even wrote a blog post about the design: https://vorpal.se/posts/2025/mar/25/filkoll-the-fastest-comm...

Re: Suicide Linux (2009)

#16
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.

How about Rogue-like Linux?

Re: Suicide Linux (2009)

#17
Somewhat reminds me of the vigil eso-language (https://github.com/munificent/vigil)

It's a programming language that helps you write error-free programs, by self-correcting itself. If it finds an error (exception), it simply deletes the offending code until the program runs without an error.

Re: Suicide Linux (2009)

#18
post #11

Earlier quoted context omitted.

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.

How about Rogue-like Linux?

Ironman Linux.

Re: Suicide Linux (2009)

#20
I did something similar while I was still working with Windows a long time ago. I had just switched to PowerShell from the basic command line and kept typing cls, which did not work. I had typed that so often it was completely in my muscle memory, and every time the ugly PowerShell error would appear. So I decided to do the proper thing and NOT alias cls to clear, but instead alias it to immediate shutdown (shutdown -f -t 0 -s iirc) and that did work eventually. Wouldn't change a thing since clear is the universal command almost anywhere so it's a lot better muscle memorizing that!
Post reply on HN