1

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?

Lone Learner
  • 18,088
  • 20
  • 102
  • 200

1 Answers1

1

Documentation

> POSIX standard Homepage ( link )

>> Shell & Utilities, in upper-left corner ( link )

>>> Utilities ( link )

Programatically

Check this answer: ( link )

Community
  • 1
  • 1
plesiv
  • 6,935
  • 3
  • 26
  • 34