[Help-bash] Why time does not take environment variable?
From:
Peng Yu
Subject:
[Help-bash] Why time does not take environment variable?
Date:
Mon, 26 Nov 2018 13:31:43 -0600
Hi,
I thought that the first TIMEFORMAT set the environment variable for
`time` temporarily. But it apparently has no effect. Could anyone help
me understand why it is so? Thanks.
TIMEFORMAT=%3R time sleep 1
1.00 real 0.00 user 0.00 sys
export TIMEFORMAT=%3R
time sleep 1
1.018
--
Regards,
Peng