Recent content by johnywhy

  1. J

    How to Execute After Read?

    Thx! i love this trick with read. Can't do this with sleep. Only way is with a loop :)
  2. J

    How to Execute After Read?

    Solved: bash -c "read -t 5 ; echo 'hi'"
  3. J

    How to Execute After Read?

    Update, some progress: Read may behave a bit differently in zsh. But this doesn't work either: bash -c "read -t 5 && echo 'bye'"
  4. J

    How to Execute After Read?

    In zsh, If i press enter before the read is finished, then the last echo command gets executed. Great! 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
Top