409
submitted 11 months ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 39 points 11 months ago

bash is veeery old and it implements all of posix.

[-] [email protected] 21 points 11 months ago

Bash's posix mode still has a lot of bashisms. The only way to test true posix compliance is to test with other shells like dash and ash. I have found this is the case a lot of time. People will say it's POSIX compliant shell, but it'll obviously only be tested in bash Like at that point just make it a bash script, since pretty much every system under the sun has it.

[-] [email protected] 6 points 11 months ago

there is always shellcheck it points them out to you

[-] [email protected] 3 points 11 months ago

I was thinking about bash scripts that use bash specific builtins. Some of those require >= x version.

[-] [email protected] 5 points 11 months ago

even <<< is like 10 years old

[-] [email protected] 5 points 11 months ago

Yeah. The only language I didn't have the right version for in the past was python. I just wanted to make a joke about standards vs implementations.

this post was submitted on 27 Jul 2023
409 points (96.0% liked)

Programmer Humor

31326 readers
20 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS