bug-bash
[Top][All Lists]
Advanced

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

Re: Command not found with builtins and variables


From: Chet Ramey
Subject: Re: Command not found with builtins and variables
Date: Thu, 11 Oct 2018 10:43:18 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 10/10/18 6:52 PM, Bob Proulx wrote:
> Chet Ramey wrote:
>> bugs@feusi.co wrote:
>>> 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"
> 
> That would work if you installed the GNU time package.

Maybe. Maybe not. It depends on $PATH. It's unlikely that his system
does not already have a `time' command, so if it's not found, it must
not be in $PATH.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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