[ksh93-integration-discuss] [osol-code] "shcomp" autodetection in the { OS/Net, SFW } gates ?

Garrett D'Amore gdamore at opensolaris.org
Tue Apr 15 07:54:47 PDT 2008


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
> opensolaris-code at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
>   



More information about the ksh93-integration-discuss mailing list