Possible Duplicate:
Resources for portable shell programming
I want to write a shell script that is intended for further distribution. So I'd like to write it in a way that is as portable as possible; by which I mean that it shouldn't rely on any fancy stuff that is only available in the particular flavour of qzdfsh
that I happen to have installed on my own machine. The script will not be very complicated (the worst it will have to do is strip file extensions and test returns from programs).
Where can I find out what stuff is supported in (almost) all shells?
(I'm particularly aware of the fact that /bin/sh
is often symlinked to "something else" so simply testing that it works with /bin/sh
seems a dubious strategy.)