From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8798 invoked from network); 17 Dec 2001 12:29:26 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 17 Dec 2001 12:29:26 -0000 Received: (qmail 23948 invoked by alias); 17 Dec 2001 12:29:22 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16356 Received: (qmail 23937 invoked from network); 17 Dec 2001 12:29:22 -0000 X-VirusChecked: Checked X-Authentication-Warning: iris.logica.co.uk: Host kiddleo@rambo.logica.co.uk [158.234.33.58] claimed to be yahoo.co.uk Sender: kiddleo@iris.logica.co.uk Message-ID: <3C1DE505.AFA6AB06@yahoo.co.uk> Date: Mon, 17 Dec 2001 12:28:53 +0000 From: Oliver Kiddle X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.15 i686) X-Accept-Language: en MIME-Version: 1.0 To: Borsenkow Andrej CC: zsh-workers@sunsite.dk Subject: Re: PATCH: += parameter assignments References: <000001c186f3$f4b82bd0$21c9ca95@mow.siemens.ru> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Borsenkow Andrej wrote: > > > One possible extension beyond what ksh does would be to also add a -= > > assignment. It could be made to prepend to string and array values > I would prefer += and =+ but that probably breaks ksh93 compatibility. This issue wouldn't be ksh93 compatibility so much as backward compatibility with old zsh scripts or any other scripts. % a-=val zsh: command not found: a-=val % a=+val % echo %a +val With `-' (or `+') not being legal inside identifiers -= only affects anyone who happens to have a command with `-=' in its name - that should be fairly rare. Affecting any script that assigns a variable with `+' as the first character is much more likely to matter (a quick grep shows two cases in the completion functions). Do any other languages use `=+' as an operator. Anyone else have any views on it? Oliver _____________________________________________________________________ This message has been checked for all known viruses by the MessageLabs Virus Scanning Service. For further information visit http://www.messagelabs.com/stats.asp