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.
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml
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.
bash is veeery old and it implements all of posix.
I was thinking about bash scripts that use bash specific builtins. Some of those require >= x version.
even <<< is like 10 years old
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.
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
andash
. 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.Oh hey, it really does!
there is always shellcheck it points them out to you