BatmanAoD

joined 1 year ago
[–] BatmanAoD@programming.dev 3 points 3 months ago

It's not so much a problem of there being things you "can't do" in other shells or older Bash, as that it breaks existing shell scripts, which is frustrating.

[–] BatmanAoD@programming.dev 1 points 3 months 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.

[–] BatmanAoD@programming.dev 0 points 3 months ago (3 children)

Did you read the linked Q&A?

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

[–] BatmanAoD@programming.dev 36 points 3 months ago* (last edited 3 months ago) (17 children)

You get admin privileges on MacOS like a big boy. You can use bash or zsh commands in Terminal all you want.

Cool. So try updating to a version of Bash from the last 15 years, because the pre-installed one is Bash 3, because Bash 4 and 5 are under the GPLv3 license, which Apple won't comply with.

...ah, no, you can't update the pre-installed Bash, because it's on a section of the file system that is read-only even with admin access. You can install Bash 5 as a separate shell, and use that as your default terminal shell, but any scripts written with the standard #!/bin/bash instead of the more flexible #!/usr/bin/env bash will still use Bash 3.

This "handholding" (or really, a safety net) is arguably a good thing, or at least a positive tradeoff; but you can't claim it doesn't exist.

[–] BatmanAoD@programming.dev 2 points 3 months ago

Regular vim has that (as a compile option, like most of its features).

[–] BatmanAoD@programming.dev 17 points 3 months ago

rm - rf is the only version that makes sense, since the only reason to delete and re-clone is to recover from an unexpected .git/ state, and git rm won't remove that.

[–] BatmanAoD@programming.dev 2 points 3 months ago

The second one!

[–] BatmanAoD@programming.dev 2 points 4 months ago* (last edited 4 months ago) (2 children)

The bit in Big Hero 6 with the video records of Tadashi inventing Baymax are about as close to this as I've ever seen in a sci fi action movie.

[–] BatmanAoD@programming.dev 5 points 4 months ago (2 children)

Sorry, why would you be "boned" if you have UTC time? Are you thinking of the case where the desired behavior is to preserve the local time, rather than the absolute time?

[–] BatmanAoD@programming.dev 9 points 4 months ago

I'm not totally clear on why signals are used here in the first place. Arguably most C code doesn't "need" to use signals in complex ways, either.

[–] BatmanAoD@programming.dev 28 points 4 months ago (2 children)

The trope will be "old" once the mainstream view is no longer that C-style memory management is "good enough".

That said, this particular vulnerability was primarily due to how signals work, which I understand to be kind of unavoidably terrible in any language.

[–] BatmanAoD@programming.dev 3 points 4 months ago

Why do you think most early adopters use Windows exclusively?

view more: ‹ prev next ›