Lone Learner
Lone Learner

Reputation: 20688

How can I find out which shell commands are available in a POSIX compliant Linux system and which ones are not?

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

Answers (1)

plesiv
plesiv

Reputation: 7028

Documentation

> POSIX standard Homepage ( link )

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

>>> Utilities ( link )

Programatically

Check this answer: ( link )

Upvotes: 2

Related Questions