zlacker

[return to "The Source History of Cat"]
1. cestit+5K1[view] [source] 2018-11-13 18:33:56
>>janvdb+(OP)
The cat utility is among the simplest, but once upon a time true was about the simplest possible Unix utility.

    #!/bin/sh

Yes, that's really it. Fire up the shell, get it to exit with 0, which is taken as success. That's all that's really necessary for its spec.

GNU's is around 29 KiB compiled, and it uses some of that to support --version and --help flags. MacOS's is around 17 KiB compiled and ignores flags.

◧◩
2. rain1+RI3[view] [source] 2018-11-14 16:24:45
>>cestit+5K1
it used to be even simpler, a blank file
[go to top]