bug-bash
[Top][All Lists]
Advanced

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

Re: Parameter indirection


From: Chet Ramey
Subject: Re: Parameter indirection
Date: Sun, 15 Jul 2018 18:00:19 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 7/15/18 2:19 PM, konsolebox wrote:
> Hi Chet,
> 
> As noted in the manual a "variable is a parameter denoted by a name",
> and a parameter "is an entity that stores values; it can be a name, a
> number, or one of the special characters."
> 
> But as observed, variable indirection doesn't only expand "variables".
> It also expands other forms of parameters including array elements,
> address@hidden, and special parameters like @.

True, though I think "variable indirection" is a more approachable way to
describe the feature. I think the description in the man page, and
especially the contexts where it appears, makes it clear that it works on
the `parameter' in ${[!]parameter[op[word]]}. If you think it would read
more clearly if I used `parameter' instead of `variable', I can look at
doing that.

-- 
``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]