Apple. Apple Please
41–50 of 64 posts
Re: Apple. Apple Please
#42Earlier quoted context omitted.
Your shell should be smart enough autocomplete it anyway.
How would a shell interrogate the valid parameters from a complied binary? I know that approaches like Powershell which has understanding of all the Microsoft commands and the ability to define a structure that defines the options ... but how would bash figure out the structure of the arguments for dd or tar or that a.out that I just compiled?
Re: Apple. Apple Please
#43Can’t read a word. Mastodon wants me to activate JS to read some text..
Mastodon isn’t a text only site. It’s a multimedia social media service.
Re: Apple. Apple Please
#44Earlier quoted context omitted.
How would a shell interrogate the valid parameters from a complied binary? I know that approaches like Powershell which has understanding of all the Microsoft commands and the ability to define a structure that defines the options ... but how would bash figure out the structure of the arguments for dd or tar or that a.out that I just compiled?
The default shell on debian autocompletes git commands and things like branch names pretty robustly for me, so somebody figured it out.
This has a fair bit of code that goes in and examines the .git directory when present.
Additionally, the shell has been programed to be aware of the git sub commands.
But is it aware of... say... svn sub commands? The same amount of effort would be need to be done to have bash aware of .svn and its sub commands.
This is special tooling written for one suite of commands.
It doesn't work for arbitrary commands or arbitrary data structures. Even well known ones.
tar -zxvf {specific file}
That doesn't do tab expansion for the specific files that are within the tar file. Nor does doing --f show the expansion options for --file --format --fflagsSomeone wrote special case tooling for one shell for one command named git.
Re: Apple. Apple Please
#45Earlier quoted context omitted.
My experience with flag autocomplete is like 90% it completing a huge filename that I then have to backspace annoyedly. Not entirely sure which shell I encountered it on but wow. I just can't afford to rely on it because of cases like those.
This makes me wonder why shells don't support a simple "undo". Though I think there will be a UI conflict between "undo autocomplete" / "undo paste" / other stuff that edits the current command line, and "undo the last command" which would need much deeper integration with the tools that get run.
- PowerShell has Ctrl+Z
- Bash has Ctrl+/
- Fish has Ctrl+Z and Ctrl+/ both
not sure about others, surely if you're using busybox ash this won't work (no line editing will work), but I'm sure most shells have some sort of undo, as long as they have any line editing at all.
Re: Apple. Apple Please
#46Earlier quoted context omitted.
This makes me wonder why shells don't support a simple "undo". Though I think there will be a UI conflict between "undo autocomplete" / "undo paste" / other stuff that edits the current command line, and "undo the last command" which would need much deeper integration with the tools that get run.
They do: - PowerShell has Ctrl+Z - Bash has Ctrl+/ - Fish has Ctrl+Z and Ctrl+/ both not sure about others, surely if you're using busybox ash this won't work (no line editing will work), but I'm sure most shells have some sort of undo, as long as they have any line editing at all.
Hopefully I’ll remember that next time I need it.
Re: Apple. Apple Please
#47Can’t read a word. Mastodon wants me to activate JS to read some text..
People who turn off JavaScript can’t complain that the web doesn’t work. Sorry, just turn it on and it works fine. Mastodon isn’t a text only site. It’s a multimedia social media service.
Those can be made to work just fine without using Javascript, that's what all those fancy tags are for after all.
Re: Apple. Apple Please
#48Earlier quoted context omitted.
No, it's very confusing, especially for people who are used to tools built with GNU getopt.
this isn’t a gnu userland, macos adheres to BSD style where order does sometimes matter. Sometimes specific things have to be first or last arguments etc, it’s not quite as freeform. it’s understandable if you find it different/jarring but that’s the price of maintaining a consistent style - you don’t change tools that are already working fine just to chase fads.
From the BSD perspective it’s like you’re coming in and shouting about rewriting everything in rust on your first day, especially since BSD does place a much higher emphasis on interface stability etc. For example unlike linux, BSD offers ABI stability, and that is one of the selling points for building something on top of it. Nor is there any systemd or upstart - or a million different directories and styles for conf files. rc.conf basically does almost everything you need for OS conf.
One net benefit is that it’s actually possible to write and maintain documentation, and it doesn’t bitrot in every single major release. Those FreeBSD forum posts from 2007 are still valid. And if you need to build some appliance that will be running unattended for years… BSD doesn’t churn like that.
But the price is you have to learn new syntax (really, the old syntax) for a half dozen system commands. Or just install the gnu version of those packages (“brew/portmaster install findutils gtar greputils” mostly covers it). It’s pretty much the first speedbump everyone hits on their first Unix, and it’s ultimately a trivial one, but yeah, there’s no desire or real reason to churn it either.
It’s the bazaar vs the cathedral, and the cathedral has some advantages too. You’d say code smell, I’d say fine patina. A lot of Unix code has had 30 or 40 years to work out the bugs and edge-cases in a controlled manner. It’s not worth losing that so newbies can have a little easier time their first week. Use gnu versions if there’s a pain point.
Re: Apple. Apple Please
#49Add this to the growing list of Apple bs that has developed over the past 10 years. Used to be in deep in the ecosystem. Now have been winding down significantly, hardware hasn’t been upgraded since 2017. Various iDevices aging out until bust. Services reduced to bare bones iCloud. Whatever the 200G plan is for keeping basic backups. Otherwise, have self hosted most of their services - iTunes/Music/TV transitioned to…
> hardware hasn’t been upgraded since 2017 What? They switched architecture to an amazing new chip series since then. I’d go even further and say that the era before then was the lost era of rubbish keyboards and strange gimmicks (looking at you, touchbar).
Re: Apple. Apple Please
#50I hate Apple products, but I just hate Windows more and am willing to give Linux a pass more. Why are core util programs different? Seriously! I know it's BSD based, but let's be real, you _should_ be able to use a command one-to-one from linux to OSX. That should be the goal. These are __core utils__! And you're gonna tell me that flags are different? Brittle AI features with obviously insufficient testing I'll be f…
This could be more accurately phrased as Linux being an incompatible fork of Unix and macOS actually being Unix. And you are annoyed at this scenario. I'm not sure what your noise cancellation point is, because that works absolutely fine here between myself and everyone else I know. As for the rest of the AI stuff, I don't use it so I can't comment. Edit: on the first point, I'm not really a fan of some of the GNU st…
I do agree and acknowledge the point. But yes, I do find it frustrating that there are such differences in core utils. I guess the frustration is more about not working harder to find consistency. I many of the man pages it is not uncommon to find flags and options that exist simply for historical reasons. But many of the frustrating points are addressable in similar ways. An example might be with `du`. The OSX implementation has no `--max-depth` flag, despite `-d` being supported. Unless I am missing something, there is no downside to incorporating the long version of the flag. I can understand some other choices, but even `grep` is different enough.
> I'm not sure what your noise cancellation point is, because that works absolutely fine here between myself and everyone else I know.
In part, this is my point. Finding where generalization fails is non-obvious and non-homogeneous. So when it fails, it typically fails in a sub class of problems. These are of far more concern than edge cases[0]. Generalization is VERY hard. It is why dogfooding is so important as well as listening to the userbase. Because it helps you identify where you're lacking.
And maybe I caused confusion by my choice of words, thinking it would be simpler and context would clarify. I specifically mean sound isolation when speaking. As in she can ride the train, call me, and hear me perfectly fine (that side is working as expected). But what sound is being sent to me is not her voice (this is clearly suppressed as it has that same format as what background noise often sounds like), but the train itself. And worse, the train is amplified. So there is a identification in what is noise and what is speech. It may help to specify that this is happening when she is not in America. There are no issues with Bart, and that should tell us quite a lot. (I'll also add that augmentation is one of my niches as a researcher)
[0] The common approach to this is by using more data. Crude, but effective. Though it can exacerbate your issues if you don't expand the distribution you sample from, since you'll just reinforce your local density.