News for hackers. Stuff that matters.
Re:Open-Sourcing Windows Calculator by nathell on Wednesday March 06, 2019 @01:54PM (#19321494)
Most trivial? Not by a long shot. What about WINVER?
Re:Open-Sourcing Windows Calculator by gpm on Wednesday March 06, 2019 @02:36PM (#19321930)
Not 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:
Re:Open-Sourcing Windows Calculator by AnIdiotOnTheNet on Wednesday March 06, 2019 @11:33PM (#19325518)
GO.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.
Re:Open-Sourcing Windows Calculator by mywittyname on Wednesday March 06, 2019 @04:09PM (#19322815)
Is true a program? I thought it was a command built into the shell.
Re:Open-Sourcing Windows Calculator by int_19h on Wednesday March 06, 2019 @04:38PM (#19323121)
Most 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...

Re:Open-Sourcing Windows Calculator by gpm on Wednesday March 06, 2019 @04:52PM (#19323247)
Re:Open-Sourcing Windows Calculator by robin_reala on Wednesday March 06, 2019 @04:37PM (#19323096)
It’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... .
Re:Open-Sourcing Windows Calculator by radgeRayden on Wednesday March 06, 2019 @07:55PM (#19324653)
I don't know what I expected.