Why would this work
timeout 10s echo \"foo bar\" # foo bar
but this wouldn\'t
function echoFooBar { echo \"foo bar\" } e
function foo(){ for i in {1..100}; do echo $i; sleep 1; done; } cat <( foo ) # Will work timeout 3 cat <( foo ) # Will Work timeout 3 cat <( foo ) | sort # Wont work, As sort will fail cat <( timeout 3 cat <( foo ) ) | sort -r # Will Work