Why does "yes&" crash my Bash session?
29
votes
2
answers
5674
views
"Yes, and..." is a wonderful rule-of-thumb in improvisational comedy. Not so much in the UNIX world.
When I run the admittedly silly
yes&
command, I cannot interrupt it. The terminal crashes or gets stuck into a loop.
I expect the yes
process to be suspended immediately, since any process in the background should suspend if attempting to write to stdout, but it doesn't seem to be the case, and I'm wondering why.
Asked by Sebastian Carlos
(262 rep)
Jul 6, 2023, 07:17 AM
Last activity: Jul 7, 2023, 04:45 PM
Last activity: Jul 7, 2023, 04:45 PM