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

Reply via email to