News for hackers. Stuff that matters.
Re:Yes-rs: A fast, memory-safe rewrite of the classic Unix y... by mrweasel on Tuesday May 27, 2025 @05:18AM (#44105256)
The OpenBSD version of true is also amazing: https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr...

The GNU version of true/false is more interesting. All the logic is in true and false just redefined the EXIT_STATUS and imports all of true.c. https://github.com/coreutils/coreutils/blob/master/src/false...

Re:Yes-rs: A fast, memory-safe rewrite of the classic Unix y... by johnisgood on Tuesday May 27, 2025 @07:22AM (#44105831)
Re:Yes-rs: A fast, memory-safe rewrite of the classic Unix y... by AlecSchueler on Tuesday May 27, 2025 @09:39AM (#44106903)
So basically they also introduced the complexity of respecting --help and --version.
Re:Yes-rs: A fast, memory-safe rewrite of the classic Unix y... by johnisgood on Tuesday May 27, 2025 @10:55AM (#44107588)
They did, because it is written somewhere that all GNU programs must conform to having --help and --version. I forgot where I read it.
Re:Yes-rs: A fast, memory-safe rewrite of the classic Unix y... by 1718627440 on Thursday May 29, 2025 @07:51AM (#44125079)