bug-bash
[Top][All Lists]
Advanced

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

Re: nounset option does not work with array in arithmentic expressions


From: Jan Schampera
Subject: Re: nounset option does not work with array in arithmentic expressions
Date: Sat, 18 Dec 2010 15:02:19 +0100
User-agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329)

Joerg Boehmer wrote:

The value of variable ar[1] is expanded to 0 although it was not set.
The full syntax produces the expected behavior:

The value of y is 0, since you operate in arithmetic context. This is fine. But I definitely agree it should bail out here.

--
Be conservative in what you do, be liberal in what you accept from others.
- jbp, master of the net, in RFC793




reply via email to

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