bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Command not found with builtins and variables


From: bugs
Subject: Command not found with builtins and variables
Date: Wed, 10 Oct 2018 13:42:50 +0200
User-agent: Mutt/1.10.1 (2018-07-13)

Hi,
I'm not exactly sure if the following is actually a bug or whether bash
is actually supposed to behave like this. However, I couldn't find any
documentation concerning it so I decided to ask.

The thing I noticed is that when setting a variable and then running the
command "time", bash reports "command not found". For example, the
command:

TEST=1 time ls

Results in "bash: time: command not found"
At first, I believed that this was inherent to the bash builtins but I 
discovered
that

TEST=1 cd

Works without any problems, so I am confused as to why bash behaves in
this manner. Is there any underlying reason to this behaviour or is this
a bug?

cheers,
project-repo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]