Glenn Fowler wrote:
> shouldn't the test be that exec(2) recognizes shcomp binaries?
>
I would think so. Do we have an exec() that does that yet? (I don't
see an appropriate module in usr/src/uts/common/exec.)
Out of curiosity, if you have a prototype for supporting this, I'd be
interested to know how much precompiling saves on a big job with a fair
amount of shell usage -- I'm thinking of the time to build ON, for example.
-- Garrett
> On Tue, 15 Apr 2008 09:03:53 -0400 James Carlson wrote:
>
>> Roland Mainz writes:
>>
>>> # use "shcomp" if present to compile the shell script,
>>> # otherwise just copy it:
>>> $(ROOTUSR)/usr/bin/foo: foo.sh
>>> if [[ -x /usr/bin/shcomp ]] ; then \
>>> shcomp foo.sh >$(ROOTUSR)/usr/bin/foo \
>>> else \
>>> cp foo.sh $(ROOTUSR)/usr/bin/foo \
>>> fi
>>>
>
> _______________________________________________
> opensolaris-code mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
>
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code