Wondering what use the yes
command might be, I stumbled upon this comment, and tried to execute
yes $(yes yes)
From what I understand, this should simply print out an infinite sequence of yes
, but instead it outputs nothing and crashes my graphical terminal after a few seconds. (If I execute it on tty1, I see the login prompt after some time.)
What is happening here?
yes
never returns. – Chris Down Nov 10 '13 at 14:58xargs
:yes yes | xargs -P 0 yes
(or without-P 0
for single-process infinity) – Kyle Strand Jan 06 '16 at 22:40