3 ms·
Most trivial? Not by a long shot. What about WINVER?
by nathell 8y ago
Most trivial? Not by a long shot. What about WINVER?
- gpm 8y agoNot windows, but `true` has to take the cake for the most trivial program, the portion of my comment after the second : is a valid implementation:
- mywittyname 8y agoIs true a program? I thought it was a command built into the shell.
- robin_reala 8y agoIt’s /usr/bin/true on Mac, and the OpenBSD source for it is at https://github.com/openbsd/src/blob/master/usr.bin/true/true.c https://github.com/openbsd/src/blob/master/usr.bin/true/true... .
- radgeRayden 8y agoI don't know what I expected.
- int_19h 8y agoMost shells optimize it to avoid the overhead of spawning a process for something as trivial as that. But yes, it's an actual binary even so, just in case - try `which true`. https://www.gnu.org/software/coreutils/manual/html_node/true-invocation.html#true-invocation https://www.gnu.org/software/coreutils/manual/html_node/true...
- gpm 8y agoSome history: http://trillian.mit.edu/~jc/humor/ATT_Copyright_true.html http://trillian.mit.edu/~jc/humor/ATT_Copyright_true.html
- AnIdiotOnTheNet 8y agoGO.COM for CP/M and DOS was similarly trivial. A 0-byte program, the effect of which was to cause the previously run program (which was still in memory at 0100h) to start again.