I'm working on a series of command lines to create files, set variables and such on Linux systems. I cannot tell which shell will actually be used during execution but I do know that it will be one of csh, tcsh, sh, ksh, or bash.
csh and tcsh not being bourne compatible is my main issue at this point since they use different commands/syntax for both setting variables and conditional expressions.
I could simply create a shell script with a shebang to switch to /bin/sh if it is safe to assume it being present.
Therefore I'm wondering: Is it safe to assume sh being installed and available or is there another more elegant way to handle the different shell styles without creating seperate scripts?