From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6218 invoked by alias); 26 Feb 2017 05:35:19 -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: 22503 Received: (qmail 13492 invoked from network); 26 Feb 2017 05:35:19 -0000 X-Qmail-Scanner-Diagnostics: from mta04.eastlink.ca by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(24.224.136.10):SA:0(-0.7/5.0):. Processed in 1.703802 secs); 26 Feb 2017 05:35:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: rayandrews@eastlink.ca X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.eastlink.ca designates 24.224.136.10 as permitted sender) X-Authority-Analysis: v=2.2 cv=DOfN2GFb c=1 sm=1 tr=0 a=XjFz1dxMm4jRJ7U1/4sCTg==:117 a=XjFz1dxMm4jRJ7U1/4sCTg==:17 a=N659UExz7-8A:10 a=nUJ-jzqZXmvM9tQJ3CMA:9 a=pILNOxqGKmIA:10 X-EL-IP-NOAUTH: 24.207.24.32 Subject: Re: bash conversion trouble. To: zsh-users@zsh.org References: <004ec4f2-3b3a-8907-86a6-4326399783aa@eastlink.ca> <170224204153.ZM19840@torch.brasslantern.com> <6f722b8f-a712-985f-65e8-3b03a5b352c3@eastlink.ca> <170225075521.ZM22115@torch.brasslantern.com> <32f48d32-2b11-045e-5925-8f112783f1e2@eastlink.ca> <170225090218.ZM22334@torch.brasslantern.com> <170225120927.ZM22787@torch.brasslantern.com> From: Ray Andrews Message-id: <34e05410-7940-aa48-2c35-1302b915f713@eastlink.ca> Date: Sat, 25 Feb 2017 21:05:08 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-version: 1.0 In-reply-to: <170225120927.ZM22787@torch.brasslantern.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 25/02/17 12:09 PM, Bart Schaefer wrote: > The point is that zsh "went" before there were arrays in bash to follow. > "I'd have expected gorillas to be the same color as orangutans." Yes, that much I know, if I stop to recall it. > } One hears nothing but bad things about csh. > > Yes, the intent of zsh was to take only the good things from csh and for > everything else be like the Bourne shell (which is NOT "like bash", nor > is it even "like POSIX" which came even later). Sure, but I've always presumed that bash is 'like' sh, for obvious reasons so the likeness would come from the parent. Why was there zsh and bash anyway? It seems to me that the goals would have been so similar that two projects were a duplication of effort. > > In C it makes sense because arrays are based on pointer arithmetic so > array[0] == *(array+0) == the start of the array. Shells don't have > such pointer arithmetic, at least not exposed by default. That's even > the reason that $0 == the program name, because in the underlying C > the 0 element of the array passed to execve() is the program name. > Yeah, thanks for reminding me. zero base really is the more rigorously correct.