[Openmcl-devel] CCL startup script (ccl & ccl64) is not Bourne Shell compatible

Tim Bradshaw tfb at tfeb.org
Tue Oct 13 04:35:58 PDT 2009


On 10 Oct 2009, at 17:45, Waldek Hebisch wrote:

> AFAICS on Solaris correct fix is to replace '/bin/sh' by
> '/bin/posix/sh'.

If we assume that all systems have a decent ksh or bash somewhere in  
the path, then the best approach is generally to have the ban line be

#!/usr/bin/env bash

Which will find the appropriate shell (use ksh if preferred).

It certainly is the case that Solaris's /bin/sh is a non-Posix shell  
(in other words, it's actually the Bourne shell rather than some  
remote souped-up descendent of it): I think they're pretty wary of  
changing it and causing a huge number of poorly-written customer  
scripts to break.

--tim



More information about the Openmcl-devel mailing list