Why would this work
timeout 10s echo \"foo bar\" # foo bar
but this wouldn\'t
function echoFooBar { echo \"foo bar\" } e
This one liner will exit your Bash session after 10s
$ TMOUT=10 && echo "foo bar"