Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14706 > unrolled thread

Command not found with builtins and variables

Started bybugs@feusi.co
First post2018-10-10 13:42 +0200
Last post2018-10-10 13:42 +0200
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug


Contents

  Command not found with builtins and variables bugs@feusi.co - 2018-10-10 13:42 +0200

#14706 — Command not found with builtins and variables

Frombugs@feusi.co
Date2018-10-10 13:42 +0200
SubjectCommand not found with builtins and variables
Message-ID<mailman.1956.1539184117.1284.bug-bash@gnu.org>
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

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web