Hi all, I test it out as both `arch' and `machine' and didn't observe any differences. Also, I figured I might as well convert exit(3) to return while touching this code, as was done in [1].
Regard, Michael [1]: https://marc.info/?l=openbsd-tech&m=144095769912804&w=2 Index: src/usr.bin/arch/arch.c =================================================================== RCS file: /cvs/src/usr.bin/arch/arch.c,v retrieving revision 1.14 diff -u -p -r1.14 arch.c --- src/usr.bin/arch/arch.c 8 Feb 2015 23:40:34 -0000 1.14 +++ src/usr.bin/arch/arch.c 23 Sep 2015 20:09:18 -0000 @@ -25,7 +25,6 @@ #include <sys/param.h> /* MACHINE MACHINE_ARCH */ -#include <err.h> #include <locale.h> #include <stdio.h> #include <stdlib.h> @@ -73,13 +72,10 @@ main(int argc, char *argv[]) usage(); /* NOTREACHED */ } - if (!short_form) { - fputs("OpenBSD", stdout); - fputc('.', stdout); - } - fputs(arch, stdout); - fputc('\n', stdout); - exit(0); + if (!short_form) + fputs("OpenBSD.", stdout); + puts(arch); + return 0; } static void
