Re:A prog by any other name
by skykooler on Thursday April 28, 2016 @01:18PM
(#11590440)
Sometimes this is used for other purposes, as well. For instance, the busybox binary provides a lot of utilities (cp, init, ping etc) all linked to /bin/busybox, which uses the name it is called under to determine which program to run.
[ Parent
| on HN ]
The GNU mtools also used this scheme. So the idea goes back pretty far.
(Mtools is a collection of tools to allow Unix systems to manipulate MS-DOS files: read, write, and move around files on an MS-DOS filesystem, typically a floppy disk.)
egrep, fgrep, grep (+ z* variants) share the same binary too.