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?


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?