check this out
$ time echo 1 1 real 0m0.000s user 0m0.000s sys 0m0.000s
$ TESTVAR=TEST time echo 1 1 0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 1932maxresident)k 0inputs+0outputs (0major+74minor)pagefaults 0swaps
I have worked around this by exporting the variable beforehand, but am curious to know why this is.
(ubuntu and bash)