Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: bugs@feusi.co Newsgroups: gnu.bash.bug Subject: Command not found with builtins and variables Date: Wed, 10 Oct 2018 13:42:50 +0200 Lines: 25 Approved: bug-bash@gnu.org Message-ID: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: usenet.stanford.edu 1539184117 29327 208.118.235.17 (10 Oct 2018 15:08:37 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org ARC-Seal: i=1; a=rsa-sha256; t=1539171706; cv=none; d=zoho.eu; s=zohoarc; b=AU1Q5EpMYKQirn7I84n62OsGoxB09YxnmMRJeyaszPHPtKXan+i5f/BVoDaH35xiMBBRor76dO8c6xVyMiobuFZ3PVgUzmXGsFZtmjuAvjpSzsWXG9Fp03O3jqCuXm5uqEZKOzyyBuNoFYHLYfejIEXSvj0lO4Z4dDH2yzdGxf4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.eu; s=zohoarc; t=1539171706; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To:ARC-Authentication-Results; bh=p+FWwX18XNTKky8Tv/hsG4J1547EFAta/2+EA3VGqFM=; b=gdgAPYrIoaLU3vIurzbogO0RJp6GWH7OWqt1IgM4wu3S/g6UtefjVTuoLOf8OT5rHq/y4+v7jaK/vWC9xdq6Al1bpXkVTgsPz+8R+E8r8x1Wx6O0yNLLrD0jajKy8UsgTtCY2l91naguBSAyJsxqftfQbqEJM5fCz6SzmsGFZ4I= ARC-Authentication-Results: i=1; mx.zoho.eu; dkim=pass header.i=feusi.co; spf=pass smtp.mailfrom=bugs@feusi.co; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zoho; d=feusi.co; h=date:from:to:subject:message-id:mime-version:content-type:user-agent; b=CtRapgGFETdsJ7GOOR0Df07b/GFxa2IYbXsIMsEE+b92r2UfJp5Gf9UBvO9oJ3Iy3Un7DG0Afol7 5rzaR4hswqOH0jWVsGpwniDXGMVbgZm9v6zumuCEz7ix+6VsDEq8j0u4OjGklNm5UFw5vljLZAuS Ge/yDTJ/zfn9ZIFlMno= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1539171706; s=zoho; d=feusi.co; i=bugs@feusi.co; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; l=701; bh=p+FWwX18XNTKky8Tv/hsG4J1547EFAta/2+EA3VGqFM=; b=hP7xaOFINpzVBC7SSi15MwJcnCNq3Fu6pTzlPR8j37IOdl53yEV+SIJG8gP0+YkQ WZ11EGrjJK5yxYftgZNL6y9Jw//b7rZyNVunqfjLlHJbH5P7/I9mFlJSPMwVj2Wi399 nWlHP1YrrzV2ESa+65obiL0gE2qLEOn/IPLHVx80= Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-ZohoMailClient: External X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 31.186.226.248 X-Mailman-Approved-At: Wed, 10 Oct 2018 11:08:35 -0400 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:14706 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