Again, I do not have a fight in this. It was only an odd observation, because this is not how it works in other operating systems. I just tried on Ubuntu, for example, and I do not end up with an endless “Y” in my terminal. Perhaps other Linux distros modify this so it is not endless.
I happened to have ISOs for each of these distros on hand, so I booted up VMs with each of them, and every single one of them behaves the same as NixOS. It is the documented behavior of the yes utility from the coreutils package, so it would be very surprising if it didn’t do this on any distro.
To be clear, the main reason I’m continuing to ask is because my curiosity is through the roof as to how you’ve ended up in a circumstance where it doesn’t behave like this. I’m not trying to just tell you you’re wrong or anything; I really want to know where this discrepancy comes from.
Hopefully you’ll want to answer this question: what does it do instead? Does it just print y once? Do you know where the yes command came from? Like @ElvishJerricco my curiosity is piqued.