nicman24
link
fedilink
401Y

bash is veeery old and it implements all of posix.

narshee
creator
link
fedilink
41Y

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

nicman24
link
fedilink
61Y

even <<< is like 10 years old

narshee
creator
link
fedilink
61Y

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.

Noodlez
link
fedilink
221Y

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.

nicman24
link
fedilink
61Y

there is always shellcheck it points them out to you

Create a post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 77 users / day
  • 211 users / week
  • 413 users / month
  • 2.92K users / 6 months
  • 1 subscriber
  • 1.53K Posts
  • 33.8K Comments
  • Modlog