Resources for portable shell programming
75
votes
6
answers
6337
views
What resources exist for portable shell programming? The ultimate answer is to test on all targeted platforms, but that's rarely practical.
The [POSIX / Single UNIX specification](http://pubs.opengroup.org/onlinepubs/009695399/) is a start, but it tells neither you what the level of support of each implementation is, nor what common extensions exist. You can read the documentation of each implementation, but that's very time consuming and not completely accurate.
I seems to me that an ideal format would be some kind of community-annotated version of the POSIX spec, where each feature is annotated by its support level amongst the different implementations. Is there such a thing? Or are there other useful resources?
For example, there is [Sven Mascheck's shell portability pages](http://www.in-ulm.de/~mascheck/various/) , but it's only about syntactic elements and a few built-ins, and only covers old shells. I'm looking for a more comprehensive resource.
Asked by Gilles 'SO- stop being evil'
(862422 rep)
Mar 23, 2011, 09:56 PM
Last activity: Apr 24, 2022, 06:56 AM
Last activity: Apr 24, 2022, 06:56 AM