|
| From: | Florian Mayer |
| Subject: | Re: Curious case of arithmetic expansion |
| Date: | Sun, 23 Apr 2017 15:15:26 +0200 |
So in a scenario like the mentioned $ foo=bar; bar=moo; moo=123 the line $ ((foo++)); echo $foo $bar $moo should actually evaluate to „bar moo 124“ or at least say something like „error, can not execute side effects, because I can’t keep track of what I expanded in order to get a number" which it does not… I know that (()) probably was never intended for such a thing, but it’d be a nice-to-have addition, while being certainly doable :)
|
| [Prev in Thread] | Current Thread | [Next in Thread] |