From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25841 invoked by alias); 23 Jun 2015 20:25:28 -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: 35579 Received: (qmail 25044 invoked from network); 23 Jun 2015 20:25:27 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=D2pnjJ41HHNM1RJm91C9Zvznj3VIaJVZpQCngWLIe8U=; b=Stxc4ZTUTaRWUKOSwGBn+dTdwgo5ROGwVMYnVv8Au4srO5RsxmYexMxtiLxvL1Z3lG 2aXy/GFUB6JgRqE0ZwhdAEkbU47Iy+LU2R5PrACvoUf2oir7tHD/Jk02Ab4MznONQNOA YaJ0YRfi/w65pyrOho5NEzeQ0W67KO+R+9fAowQbbYeF4jJx4V8xtXOhTNtoj/egeLNb 5pRUNShx+uLDLipLs4bjJs6TF2vmEzT8Sx68BLAv2ZAPdvIKbfrPRQ0mi+SsTkMS2gd6 roOO5hIwwN4iNfesqpuW08sqaBjgbgNcyAmC8wvRMPu/MKvuiBunA0wkkrPzEBNuyO5Z 0wXw== X-Gm-Message-State: ALoCoQkNPXQ3/7CYg12LA5Sff08iYfXjvwruFCjPIAn+5DvB0bm77a/PZPfPlFGlmBUNOTt7ikws X-Received: by 10.202.175.82 with SMTP id y79mr22096259oie.22.1435091125685; Tue, 23 Jun 2015 13:25:25 -0700 (PDT) From: Bart Schaefer Message-Id: <150623132522.ZM6177@torch.brasslantern.com> Date: Tue, 23 Jun 2015 13:25:22 -0700 In-Reply-To: <20150623174719.43eaa1e2@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: Typeset with array" (Jun 23, 5:47pm) References: <5578996E.3080700@thequod.de> <150610191427.ZM30841@torch.brasslantern.com> <5579C247.1060800@thequod.de> <150611183639.ZM32247@torch.brasslantern.com> <20150612094237.338f79d5@pwslap01u.europe.root.pri> <20150619123930.2688d9e3@pwslap01u.europe.root.pri> <20150621210512.113577a6@ntlworld.com> <20150621213842.621886e0@ntlworld.com> <20150623174719.43eaa1e2@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "Zsh Hackers' List" Subject: Re: Typeset with array MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 23, 5:47pm, Peter Stephenson wrote: } } I think this is now basically working. Any more comments, or should I } roll this out and see what happens? I'd say go for it. } + /* } + * Careful here: this must be the typeset case, } + * but we need to tell the lexer not to look } + * for assignments until we've finished the } + * present one. } + */ This has me trying to think of ways to implement the ksh ([key]=value) syntax. typeset -a varname=([k1]=v1 [k2]=v2) is just typeset -A varname varname[k1]=v1 varname[k2]=v2 There's probably a not-too-horrible way to do that if already looking for assignments inside the parens ... But I wouldn't suggest delaying any further for that.