[TUHS] the first busybox
Greg 'groggy' Lehey via TUHS
tuhs at tuhs.org
Fri Oct 23 16:02:52 AEST 2026
On Thursday, 22 October 2026 at 9:06:43 -0600, Arnold Robbins via TUHS wrote:
> ron minnich via TUHS <tuhs at tuhs.org> wrote:
>
>> I got to wondering how far back this idea went in the Unix world. I just
>> can't remember.
>
> As Warner mentioned, some commands did this based on looking at
> argv[0]. In particular, System III and IV had cp, ln, and mv all in
> one binary. That was circa 1980. I'm not sure I know of others.
They're still there. FreeBSD still has a number of linked executables
in /bin: [ and test, ed and red, csh and tcsh, pgrep and pkill, link
and ln, rm and unlink. Some look just like different names, and I
don't know to what extent their behaviour depends on the name, but
pgrep and pkill have different functionality. Then in /sbin there are
24 different names for sha1 and friends and 17 different names for
geom and similar. The man page for sha1 suggests that the behaviour
does depend on the name.
Greg
--
Sent from my desktop computer.
Finger grog at lemis.com for PGP public key.
See complete headers for address and phone numbers.
This message is digitally signed. If your Microsoft mail program
reports problems, please read http://lemis.com/broken-MUA.php
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://www.tuhs.org/pipermail/tuhs/attachments/20261023/26401fe5/attachment.sig>
More information about the TUHS
mailing list