KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a minimally POSIX .2 compliant shell (let's call it mpcsh ) in the following sense: if mpcsh myscript.sh behaves correctly on my (compliant) system then xsh myscript.sh will behave identically for any POSIX.2 compliant shell xsh on any compliant system. ("Identically" up to less relevant things like the wording of error messages etc.) Does dash qualify? If not, is there any way to verify compliance of myscript.sh ? Edit (9 years later): The accepted answer still stands, but have a look at this blog post and the checkbashisms command ( source ). Avoiding bashisms is not the same as writing a POSIX.2 compliant shell script, but it comes close.
Tags (comma-separated)
Save Edits
Cancel