this post was submitted on 04 Apr 2024
70 points (98.6% liked)

Linux

48328 readers
636 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] lemmyreader@lemmy.ml 3 points 7 months ago (1 children)
[–] flying_sheep@lemmy.ml 5 points 7 months ago (1 children)

POSIX shells are horrible unmaintainable bug factories.

shellcheck is not enough to make them safe programming languages. They are acceptable only in an interactive context.

Having anything encourage people to write POSIXy shell scripts is a design flaw.

[–] lemmyreader@lemmy.ml 4 points 7 months ago (2 children)

Continue your ranting on some OpenBSD (uses /bin/ksh in init scripts) mailing list ?

[–] flying_sheep@lemmy.ml 3 points 7 months ago* (last edited 7 months ago)

I don't think those are better or worse. My point isn't about some ancient far too limiting standard, but about how easy it is to wreck everything by not knowing some obscure syntactical rule. My issue is about implicit conversion between strings and arrays, about silently swallowing errors and so on. And the only shell languages that I know aren't idiotic are nushell and Powershell.

That KDE theme that nuked some user’s home directory? Used a bash script. That time the bumblebee graphics card switching utility deleted /var? Bash script. Any time some build system broke because of a space in a path: bash/ZSH/... script.

Why would anyone make an init system based on shell scripts these days?

[–] drwho@beehaw.org 1 points 7 months ago

Yes, please. I've got plenty of popcorn for everybody.