Skip to main content

Timeline for Bash Pipeline Stops Working

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Apr 15, 2018 at 18:00 comment added meuh because testPipe does a single read which will only read one line of input. The function will finish and control will return to where it was called, at the end of the pipe. I'm sure there must be some bash tutorials online that would provide better examples.
Apr 15, 2018 at 17:40 comment added Greg S Okay, but when I remove "cat" from testPipe it doesn't work unless I incorporate an infinite loop.
Apr 15, 2018 at 17:26 comment added meuh pipeTee runs tee which never returns, so you can only call this script once.
Apr 15, 2018 at 17:19 comment added Greg S Dumb question, why did the parsing function need the infinite loop while the other did not?
Apr 15, 2018 at 17:11 vote accept Greg S
Apr 15, 2018 at 17:11 comment added Greg S Yes! It was the infinite loop that I didn't have!!! while testPipe; do : ; done Thank you very much!!!
Apr 15, 2018 at 16:58 history answered meuh CC BY-SA 3.0