Reputation: 20688
While writing a shell script, I want to try to keep my script as much POSIX-compatible as possible, i.e. any POSIX shell should be able to run it successfully.
While writing scripts, sometimes I have to decide whether I should use the printf
, getopt
, etc. commands or not. I don't know how to take such a decision.
Is there a way to find out if a command is guaranteed to be available by the POSIX standard?
Upvotes: 2
Views: 120