When the process being timed gets a SIGSTOP time considers its job finished. In the following transcript I pressed C-z about a second after issuing the time command. [~]$ time sleep 5 [1]+ Stopped sleep 5 real 0m0.944s user 0m0.000s sys 0m0.001s [~]$ fg sleep 5 [~]$
This is a bug in the bash built-in version of time, not the "real" time command (/usr/bin/time). /usr/bin/time does not exhibit this behaviour.
tags 399076 + confirmed found 399076 4.2+dfsg-0.1 thanks This persists with bash 4.2+dfsg-0.1.
tags 399076 upstream This is still not fixed and contained in upstream Bash as well. I have reported it upstream. KR