Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
	autolearn_force=no version=3.4.0
Message-ID: <5695C0E8.908@inlv.org>
Date: Wed, 13 Jan 2016 04:13:44 +0100
From: Martijn Dekker <martijn@inlv.org>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.2.0
MIME-Version: 1.0
To: zsh-workers@zsh.org
CC: Peter Stephenson <p.w.stephenson@ntlworld.com>
Subject: Re: [BUG] emulate sh: arith assignment assigns variable type
References: <5686DB95.2090602@inlv.org> <20160102181126.364cc450@ntlworld.com>
In-Reply-To: <20160102181126.364cc450@ntlworld.com>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
X-Seq: zsh-workers 37598

Peter Stephenson schreef op 02-01-16 om 19:11:
> On Fri, 01 Jan 2016 21:03:33 +0100
> Martijn Dekker <martijn@inlv.org> wrote:
>> > When an assignment is done to an unset variable using an arithmetic
>> > expression, zsh assigns a numerical or arithmetic type to that variable,
>> > causing subsequent normal shell assignments to be interpreted as
>> > arithmetic expressions.
> Yes, it does.
> 
> Does this need a special option?  The linkage is a bit tenouous.

It's working fine in any case. Thanks.

I noticed the fix has made it into the git repository, but without a
corresponding ChangeLog entry. Thought I'd mention it in case that was
an unintentional omission.

- M.

