[Top][All Lists]

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

Re: Bash 4.4 beta - parameter transformation - parameter attributes

From: Chet Ramey
Subject: Re: Bash 4.4 beta - parameter transformation - parameter attributes
Date: Tue, 3 Nov 2015 09:41:14 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 11/2/15 7:36 PM, Dennis Williamson wrote:

> I guess the point I'm trying to get to is that I don't see
> how "address@hidden" or "address@hidden" are useful whereas their opposites
> are ("address@hidden" and "address@hidden") regardless of whether the
> parameter is an array or scalar. By the way, subscripting using "@" with
> these transformations also doesn't seem to be useful.
> It may be that this is not a matter for changing the Bash code or
> documentation but that it's necessary to consider these behaviors when
> making good coding practice choices.

Consistency is important.  All the operators accept the same set of
operands on the lhs, even if some combinations are not really useful.


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

reply via email to

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