On Tue, Sep 30, 2025 at 10:58:48 +0200, Pourko via Bug reports for the GNU
Bourne Again SHell wrote:
> $ FOO=bar time true
When you use this syntax, you're forcing "time" to be evaluated as a
regular command instead of a keyword.
Here's the keyword:
hobbit:~$ time --version
bash: --version: command not found
real 0.002 user 0.000 sys 0.002
Here's the external /usr/bin/time (on Debian 13):
hobbit:~$ /usr/bin/time --version
time (GNU Time) UNKNOWN
...
And here's the syntax you were trying to use:
hobbit:~$ x=y time --version
time (GNU Time) UNKNOWN
...
As you can see, it uses the external /usr/bin/time.