|
From: | Nikolai Kondrashov |
Subject: | Re: Local variables overriding global constants |
Date: | Wed, 03 Apr 2013 10:54:19 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 |
On 04/03/2013 10:53 AM, Nikolai Kondrashov wrote:
Moreover, this: bash -c 'a() { v=2; }; b () { v=1; a; echo "$v"; }; b'
Sorry, forgot "declare", should be this instead: bash -c 'a() { v=2; }; b () { declare v=1; a; echo "$v"; }; b' Sincerely, Nick
[Prev in Thread] | Current Thread | [Next in Thread] |