@KitRedgrave for comparison, busybox yes(1), which actually resembles something real human beings would write:
https://git.busybox.net/busybox/tree/coreutils/yes.c
but yes, the whole factor of not wanting to get sued by whoever got bells labs when bell was broken up was a factor in the gnu style