Re:For the Love of Pipes
by richardwhiuk on Tuesday January 22, 2019 @04:38PM
(#18972803)
The better solution is to change the command so it expects programatic arguments / pass command line parameters.
i.e.
prefer `apt-get install -y` over `yes | apt-get install foo`
[1] https://core.tcl.tk/expect/index [2] https://pexpect.readthedocs.io/en/stable/