Is sh script faster than csh script ?

Jeff Medcalf jeffm at uokmax.UUCP
Wed Sep 13 16:25:15 AEST 1989


In article <2555 at taux01.UUCP> amos at taux01.UUCP (Amos Shapir) writes:
>
>If your .cshrc is big, it might slow things down considerably - it's read
>on every sub-shell.
>
>-- 
>	Amos Shapir		amos at taux01.nsc.com or amos at nsc.nsc.com


In order to prevent this, use csh -f (e.g. #!/bin/csh -f).  All that this does
is to prevent the reading of the .cshrc file (and of course any files sourced
by .cshrc, such as the .alias file that many people (at this site, at least)
use).  However, sh will still be faster.


-- 
jeffm at uokmax.UUCP   |  Arkansas state motto:  At Least We're Not Oklahoma.  |
Jeff Medcalf	+-----------------------------------------------------------+
----------------|       Artificial Intelligence?  As opposed to what?	    |
                +-----------------------------------------------------------+



More information about the Comp.unix.wizards mailing list