this post was submitted on 21 Jun 2024
131 points (97.1% liked)
Linux
48112 readers
643 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
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
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
view the rest of the comments
Zsh, because unlike Bash using arrays in Zsh doesn't make me want to perform percussive maintenance on the nearest Von-Neumann machine
I always figured that Ksh / POSIX / Bash shell arrays are kept as they are because anyone with a serious need of arrays ought to be using something better than a scripting language.
Not necessarily.
They're a basic data structure used everywhere, most notably with command arguments (
$@
) and can make shell scripts a viable option for many simple tasks if their syntax makes sense and you don't have to wonder how their expansion works every time you see one being used.An analogy:
My Swiss Army knife has a screwdriver on it. It's nice to have, and I even used it recently.
It juts out perpendicular to the middle of the knife's body though, making a literal " |- " shape, so for many applications it's too awkward for the job.
I also have a more traditional screwdriver. As and when I come to build a new PC, I don't think I'll be using the one on the knife.
Following the analogy, what if the screwdriver part was bent by 30° and you had to awkwardly turn the tool while keeping it tilted - but there's also a spring mechanism that attempts to retract the screwdriver you push too hard against the screw?
(all of that for historical reasons, of course)
((or even to discourage you from using the tool?))