Article 50QRJ Prompt disappears after bash script using 'time'

Prompt disappears after bash script using 'time'

by
gordonfindlay
from LinuxQuestions.org on (#50QRJ)
I have bash scripts which have the general structure

time {
command 1
command 2
etc
}

When they are executed (from the command line) the time to execute the script is displayed, and the script exits. But the command line now has no prompt. I can type any command at the command line and that executes fine, then restores the prompt ready for the next command

ANy idea why the prompt disappears?latest?d=yIl2AUoC8zA latest?i=6Fx7nG9e4wQ:Tx_EAo0m8Vw:F7zBnMy latest?i=6Fx7nG9e4wQ:Tx_EAo0m8Vw:V_sGLiP latest?d=qj6IDK7rITs latest?i=6Fx7nG9e4wQ:Tx_EAo0m8Vw:gIN9vFw6Fx7nG9e4wQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments