News for hackers. Stuff that matters.
Re:Bash 4.4 released by etatoby on Friday September 16, 2016 @07:30AM (#12513261)
Why would you want to time nothing? What does it output, real 0s user 0s system 0s?
Re:Bash 4.4 released by thiagoharry on Friday September 16, 2016 @07:41AM (#12513310)
Why would you want to multiply by 1 or sum zero? You probably wouldn't need to do it, but computers and scripts aren't so smart as people and always follow code literally. For them is important a language having less irregularities and exceptional rules. If "" is a valid command and you have the syntax "time [COMMAND];", why not allow "time;"?
Re:Bash 4.4 released by sillysaurus3 on Friday September 16, 2016 @07:45AM (#12513328)
It might be to avoid errors for scripts like:

  time ${cmd}; foo
where cmd happens to be unset. Conceptually, that's a valid script, because `time` standalone is a valid script. No reason it should generate an error.
Re:Bash 4.4 released by fosk on Friday September 16, 2016 @03:04PM (#12516465)
Not always the case, I just tried and:

$ time

real 0m0.002s user 0m0.000s sys 0m0.000s