this post was submitted on 03 May 2024
14 points (64.6% liked)
Linux
48193 readers
1305 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
Yeah, Apple moved to Zsh as default some years back, which is the main reason I'm familiar with its differences in terms of parameter expansion. They still ship Bash 3.2 with macOS, but they can't ship newer versions due to GPLv3 licensing, or something like that. So they had the motivation to switch.
In the Linux world, there's no great motivation to change the default, because Bash 5.x is already comparable to zsh in terms of features, and it's what everyone is already familiar with.
Perhaps I misunderstood OP's question. I figured they meant using variables. Otherwise I don't know how to make sense of it.
Admittedly, I too am not certain why "noone inprove bash such that you can write a normal foor loop with whitespace in file names?" :-P I just noticed that not only was "foor" loop misspelled, and "noone" is likewise improper (should be "no one" or "nobody"), but "inprove" is also a "performance improvement company that helps clients implement their internal continuous improvement programs more effectively, and achieve better, more consistent and sustained results", according to Google's (SEO) search feature:-P
Therefore, I have little trouble believing that they wanted all of bash to be changed - for free ofc - so that they could do something like:
And the computer would auto-magically figure out that since mv is a command involving files, and "Iron Man" is a file that exists, that it should be the first argument and the rest of the text is the second argument. i.e., why learn how bash works, when you can make a post to !Linux@lemmy.ml and put hundreds of programmers to work for you to change the entire world, at your beck and call, while also working in how ashamed they should be that they haven't done that effort preemptively?
Which ngl, might be a good idea. Or, you know, OP could learn to use tab-complete that already does that. I should have mentioned that I suppose... but it seems too late now b/c I doubt the mods will let this post remain for too much longer. Even if you were correct and they meant variables: they never actually said that, which makes this communication really difficult to both guess what OP might have meant and also solve their problem for them, on top of them being willing to learn on their own. But we can do better on our end too: perhaps we could create a community specialized in providing help to newcomers who want to learn linux - like what resources can they read/watch/play with, to help them get started? To be clear, *I'm* not offering to start that!!