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


Groups > gnu.bash.bug > #14707

Re: Command not found with builtins and variables

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: Command not found with builtins and variables
Date Wed, 10 Oct 2018 11:17:19 -0400
Lines 22
Approved bug-bash@gnu.org
Message-ID <mailman.1957.1539184676.1284.bug-bash@gnu.org> (permalink)
References <20181010114208.GB5122@feusi.co>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace usenet.stanford.edu 1539184676 29534 208.118.235.17 (10 Oct 2018 15:17:56 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
Mail-Followup-To bug-bash@gnu.org
Content-Disposition inline
In-Reply-To <20181010114208.GB5122@feusi.co>
User-Agent NeoMutt/20170113 (1.7.2)
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From 139.137.100.1
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.21
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash/>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:14707

Show key headers only | View raw


On Wed, Oct 10, 2018 at 01:42:50PM +0200, bugs@feusi.co wrote:
> TEST=1 time ls

time is not a builtin.  It's a "keyword".  It's a piece of the shell's
syntax.  It has special magical rules that apply to nothing else.

If you want to set an environment variable in the temporary execution
environment of a command, and time how long that command takes, then
you write it like this:

time TEST=1 something that is not actually ls because ls does not use \$TEST

> TEST=1 cd
> 
> Works without any problems,

Completely useless.  cd does not use environment variables.

Stop OBFUSCATING your questions.

Post the ACTUAL QUESTIONS with the ACTUAL INTENT so we can answer them.

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Command not found with builtins and variables Greg Wooledge <wooledg@eeg.ccf.org> - 2018-10-10 11:17 -0400

csiph-web