this post was submitted on 28 Jul 2024
590 points (94.0% liked)

Programmer Humor

19197 readers
956 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 month ago (3 children)

I'm not sure what you mean. I have updated bash with a single homebrew command.

[–] [email protected] 1 points 1 month ago (2 children)

If it's anything like when I used a Mac regularly 7y ago, Homebrew doesn't install to /bin, it installs to /usr/local/bin, which only works for scripts that use env in their shell "marker" (if you don't call it directly with the shell). You're just putting a higher bash in the path, not truly updating the one that comes with the system.

[–] [email protected] 2 points 1 month ago (1 children)

It's been a long time since I even did this, and I've gotten at least one new machine since. I got several replies so I'll just link my original response: https://lemmy.world/comment/11431853

[–] [email protected] 2 points 1 month ago

Gotcha. Yeah low level Unix has some weird stuff going on sometimes.

[–] [email protected] 2 points 1 month ago (1 children)

That's mostly still true, with the small caveat that the default prefix on arm64 macOS is /opt/homebrew rather than /usr/local, so you might have to add it explicitly to your PATH

[–] [email protected] 1 points 1 month ago

Oh thank goodness, that was one of my main complaints with the system. Did they ever get around to requiring sudo like Macports (and any other reasonable system level packages manager on BSD/Linux)?

[–] [email protected] 0 points 1 month ago (1 children)

Did you read the linked Q&A?

What do you get if you run /bin/bash --version?

[–] [email protected] 2 points 1 month ago (1 children)

It's been a long time since I even did this, and I've gotten at least one new machine since. I got several replies so I'll just link my original response: https://lemmy.world/comment/11431853

[–] [email protected] 1 points 1 month ago (1 children)

Just because it doesn't matter for most users doesn't mean it isn't a real limitation. I acknowledged as much in my original comment.

[–] [email protected] 4 points 1 month ago (1 children)

The poster you're replying to was not referring to 3rd party software in user space.

[–] [email protected] 5 points 1 month ago* (last edited 1 month ago)

Ok, yeah, I can see that there would be times this could matter but like 90% of the time this wouldn't have mattered for my use case afaik. I didn't realize you couldn't backup the old copy in /bin and symlink to the brew one from there. In fact I thought I did do that long ago.