Subject: test built into sh (Was: /etc/rc.d/ runs slowsly)
To: Greywolf <email@example.com>
From: Geoff Wing <firstname.lastname@example.org>
Date: 04/09/2000 22:58:14
Greywolf wrote about Re: /etc/rc.d/ runs slowsly:
:On 9 Apr 2000, Geoff Wing wrote:
:# Greywolf <email@example.com> typed:
:# :What "fork test"? "test" is a builtin, no?
:My Goddess, we are still in the dark ages in that respect, yet we
:embrace the LESS thought-out new standards without a second thought!
:Shall I send-pr this?
I just did though it's a tiny bit incomplete - doesn't handle floppy
version yet, i.e. with -DSMALL (see below for whether it's worth it)
Here's some info: ``sh'' is the modified version with a builtin
version of test/[ ; this is on an x86 machine.
# ls -l sh /bin/sh /bin/test
-r-xr-xr-x 1 root wheel 342420 Apr 3 05:18 /bin/sh
-r-xr-xr-x 2 root wheel 40152 Apr 3 05:18 /bin/test
-rwxr-xr-x 1 root wheel 345752 Apr 9 22:50 sh
# size sh /bin/sh /bin/test
text data bss dec hex filename
318183 8468 17892 344543 541df sh
315079 8468 17892 341439 535bf /bin/sh
35985 432 2084 38501 9665 /bin/test
Geoff Wing : <firstname.lastname@example.org> Work URL: http://www.primenet.com.au/
Rxvt Stuff : <email@example.com> Ego URL : http://pobox.com/~gcw/
Zsh Stuff : <firstname.lastname@example.org> Phone : (Australia) 0413 431 874