[bug] yes in terminal equals endless y

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.

It is ultimately not an issue, just odd.

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.

I just loaded a VM of Ubuntu and it does not. I have never seen it run like this (ever).

Again, no fight on this. If this is how it should work, great. Just 1st time seeing it.

I’m going to unsubscribe from this thread. Cheers!

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.

1 Like

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.

The yes command is from coreutils

1 Like
1 Like