From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29416 invoked by alias); 23 Dec 2011 02:39:07 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16664 Received: (qmail 8667 invoked from network); 23 Dec 2011 02:39:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.eastlink.ca designates 24.224.136.13 as permitted sender) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed X-CMAE-Score: 0 X-CMAE-Analysis: v=2.0 cv=d8qOOWfE c=1 sm=1 a=F38gBR/N/Qdjpq1b3FW1JA==:17 a=WgCWZe6VrWMA:10 a=8nJEP1OIZ-IA:10 a=HYshxDoSAAAA:8 a=2FoOuKtz5cmw9jfVTu0A:9 a=wPNLvfGTeEIA:10 a=xfVCq7dD7vIA:10 a=aekiv1crsFEA:10 a=Y4g+zi6NJtbRuBVJrbSZ6Q==:117 Message-id: <4EF3E2BA.4000306@eastlink.ca> Date: Thu, 22 Dec 2011 18:08:58 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101218 Thunderbird/3.1.7 To: Bart Schaefer Cc: zsh-users@zsh.org Subject: Re: '$1' indexing. References: <20111218101116.GA4446@miek.nl> <20111222230108.GA32237@miek.nl> <4EF3C07B.4040604@eastlink.ca> <111222161159.ZM15011@torch.brasslantern.com> In-reply-to: <111222161159.ZM15011@torch.brasslantern.com> On 22/12/11 04:11 PM, Bart Schaefer wrote: > Hmm, you posted exactly this same thing with the subject "bug" on the > 20th. Did you not see the replies? Yes, it's a bug, and a patch for > it has also been posted. > Ooops! I just joined this list today. I forgot about the previous post, and I didn't even know if it had been received, let alone answered. I did post it on StackOverflow, but that is of course different. Anyway, I see your reply and I understand what's going on. I'm too new to this to have any strong opinion, but it seems to me that the behavior we see would perhaps be good for '$@' where '$0' is implied, but not for an explicit '$1'. Glad to know that the developers are aware of it, thanks. FWIW it seems to me that zsh has the 'right idea' when it comes to string splitting. It's true that converting my bash scripts has involved a more laborious coding in zsh (mostly needing to use 'eval'), but that is the price to be paid for keeping variables unbroken unless you specifically ask for the breakdown into words. So what is the current state of zsh development? How many workers are there? Is zsh ascendant? Is ground being gained against bash? > See http://www.zsh.org/mla/workers/2011/msg01456.html for explanation > and http://www.zsh.org/mla/workers/2011/msg01459.html for patch. >