In zsh, If i press enter before the read is finished, then the last echo command gets executed. Great!
But, if i DON'T press enter, then the final echo does NOT get executed.
How can i ensure the final echo gets executed if i allow the read to finish?
thx
Code:
read -t 10 && echo 'bye'
But, if i DON'T press enter, then the final echo does NOT get executed.
How can i ensure the final echo gets executed if i allow the read to finish?
thx
Last edited: