24 ms·
It's not about GNU. V6 Unix (circa 1975) had it: http://man.cat-v.org/unix-6th/6/units http://man.cat-v.org/unix-6th/6/units Your macOS have the BSD version:
by jxy 6y ago
It's not about GNU.
V6 Unix (circa 1975) had it: http://man.cat-v.org/unix-6th/6/units http://man.cat-v.org/unix-6th/6/units
Your macOS have the BSD version:
% units -v
units version 1.0 Copyright (c) 1993 by Adrian Mariano
This program may be freely distributed
usage: units [-f unitsfile] [-q] [-v] [from-unit to-unit]
- boomboomsubban 6y agoI'm not sure of the total history, but "by Adrian Mariano" means macOS uses GNU units. Wiki says they forked a copy before the license change.
- jxy 6y agoYou are probably right. The one in FreeBSD is from NetBSD: https://svnweb.freebsd.org/base/head/usr.bin/units/units.c?view=log https://svnweb.freebsd.org/base/head/usr.bin/units/units.c?v... The NetBSD version is from Adrian Mariano: http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/units/units.c?only_with_tag=MAIN http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/units/units.... The one in Plan9 is in yacc: http://9p.io/sources/plan9/sys/src/cmd/units.y http://9p.io/sources/plan9/sys/src/cmd/units.y This GitHub repo claims to be V6: https://github.com/memnoth/unix-v6/blob/master/source/s2/units.c https://github.com/memnoth/unix-v6/blob/master/source/s2/uni...
- boogies 6y agoIt’s about Unix, and GNU’s Not happens to be the best implementation of it. Which is why macOS copies pieces of it, despite needing to use obsolete versions in order to comply with Apple’s hatred for end-user freedom.