help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Why time does not take environment variable?


From: Chet Ramey
Subject: Re: [Help-bash] Why time does not take environment variable?
Date: Mon, 26 Nov 2018 15:24:39 -0800
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 11/26/18 3:15 PM, Peng Yu wrote:

> However, had bash allowed such syntax, would it causes any conflict to
> other bash language syntaxes. If it would not, why not allow setting
> environment variables before reserved words? Thanks.

Because that's the thing that differentiates recognizing a reserved word
from any other word. Reserved words are only reserved at specific places
in the grammar, including as the first word of a command.

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



reply via email to

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