[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Chain/cascade assignment
From: |
Chet Ramey |
Subject: |
Re: [Help-bash] Chain/cascade assignment |
Date: |
Mon, 22 Feb 2016 09:09:53 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
On 2/21/16 3:35 PM, Илюшкин Никита wrote:
> Hello,
>
> search results and simple test in CLI show, that there is no chain
> assignment in bash like var=var=val. I wonder why and want to propose this
> as a feature (as far this assign construction seems common in other
> languages).
The shell is not that kind of expression language. Assignment statements
have a return status, not a value that can be used as another value to
assign.
--
``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/