Josip Gracin wrote:
[EMAIL PROTECTED] wrote:
But first tell us what exactly is standards complaint about:
    #!/bin/sh

Please note that I did NOT claim this to be either standard or correct in any of my posts, nor do I require for this to remain in the scripts. It can be changed.

Probably, if you want to run standard complaint scripts, you'd start them
of with:

    :

(a colon on a single line)

This should cause them to be executed by the shell in a POSIX compliant
environment when executed by a POSIX compliant shell.

I am not sure I understand you correctly. Are you suggesting that I should avoid #! and use explicit invocation of shell interpreter to run scripts?

You could try something like this:

#!/bin/sh

if [ -x /usr/xpg4/bin/sh -a "$_" != /usr/xpg4/bin/sh ]; then
        exec /usr/xpg4/bin/sh $0 $*
        exit $?
fi

# rest of script from here on down

--
Darren J Moffat
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to