>Shawn Walker wrote:
>> POSIX requires that you get a POSIX shell if you type "sh" after you
>> did setup a POSIX compliant PATH"
>> 
>> So, there's nothing disturbing about this at all.
>
>Shawn, I would appreciate an advice on the following situation then:
>
>I'm trying to port a software called Asterisk to Solaris.  The software 
>uses XPG4-compliant shell scripts in its build process.  Those scripts 
>use the non-standard '#!/bin/sh' as their first line.  The scripts 
>accidentally work on currently supported platforms, but fail on Solaris 
>due to the fact that they use some XPG4 stuff which is not in Solaris 
>/bin/sh.
>
>So what do I do to make this work in Solaris?  Changing the scripts so 
>that they don't use all XPG4 features but only those which Solaris's 
>/bin/sh happens to implement is not an option.

Are these scripts run from makefiles or just as part of the
build environment?

I can't be sure what make does, but if a script is executable and starts
with ":" or even just "#" the shell will fail the exec and will run
the script with $SHELL script.

Then all you need to do is make sure /usr/xpg4/bin is in $PATH before
/usr/bin and /bin.

Casper
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to