From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10167 invoked by alias); 5 Mar 2014 17:18:48 -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: 18568 Received: (qmail 21513 invoked from network); 5 Mar 2014 17:18:32 -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 X-Authority-Analysis: v=2.1 cv=HYUtEE08 c=1 sm=1 tr=0 a=8kFmGlENxD4VPIJFP1K4vQ==:117 a=8kFmGlENxD4VPIJFP1K4vQ==:17 a=HIA4oEAs-AEA:10 a=8nJEP1OIZ-IA:10 a=SJpgrCCwvoiVIuypiEgA:9 a=wPNLvfGTeEIA:10 Message-id: <53175564.7090804@eastlink.ca> Date: Wed, 05 Mar 2014 08:48:36 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: how to truncate an array References: <1393780084.43996.YahooMailNeo@web194601.mail.sg3.yahoo.com> <140302121855.ZM1118@torch.brasslantern.com> <2234.1393867510@thecus.kiddle.eu> <1393922099.60546.YahooMailNeo@web194606.mail.sg3.yahoo.com> <140304091322.ZM4394@torch.brasslantern.com> <53161599.7030208@eastlink.ca> <140304104438.ZM4533@torch.brasslantern.com> <5316316E.5020506@eastlink.ca> <140304190533.ZM4660@torch.brasslantern.com> <5316B194.7000309@eastlink.ca> <140305080239.ZM5472@torch.brasslantern.com> In-reply-to: <140305080239.ZM5472@torch.brasslantern.com> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit On 03/05/2014 08:02 AM, Bart Schaefer wrote: > On Mar 4, 9:09pm, Ray Andrews wrote: > } Subject: Re: how to truncate an array > } > } What I mean is how the underlying C code knows to terminate > } the array. Come to think of it, there must be a null inserted, cuz > } that's how C does things > > Zsh does happen to manage shell arrays as C array-of-pointers but as > I said before, in the shell syntax/semantics they function more like > linked lists. Because the shell language is "higher level" than C, > the internals have to deal with all sorts of other stuff like memory > management. Bash, for example, does use linked lists internally to > represent arrays. > My talk is just me psyching myself up to build zsh from source and then start poking around in the code. Don't take my ruminations seriously Bart, you have better things to do. I'll stop making such remarks they make me sound bitchy.