From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28507 invoked by alias); 13 Jan 2016 03:34:48 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 37598 Received: (qmail 21551 invoked from network); 13 Jan 2016 03:34:44 -0000 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 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 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 Peter Stephenson schreef op 02-01-16 om 19:11: > On Fri, 01 Jan 2016 21:03:33 +0100 > Martijn Dekker 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.