From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18831 invoked by alias); 8 Aug 2014 06:07:33 -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: 19016 Received: (qmail 19476 invoked from network); 8 Aug 2014 06:07:31 -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,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=ptU64zmtkP4aYG9eTR0nVca2sl8bMEi9o8O8z9q5HT8=; b=TyjF4d+7ReFct8APS8JSisUZbI9K3Pe4HABM5+cckZJ2SNsBLPAMwdeqLPhGKMqtSl PmZv2ExBjTAv5KNnrFdhgaASlKdGBWOMwNboT4SN+BlJrVwIBjOWtRseJh/l/wWOvE5p HEdthvCNu/HKzKFhkvi/b9lqsKr2u4qyFolYgdDZ0jQEXIUNiL2hNZ+Wzx/8R7g7uSVL KqEi3/6xJ7qIhsH+uFh5zwLOVzrrJQiNQ+uyPxoVIl/L+BOLbnvTohX0V0CeCUpgfowA xCyo/qraTdPgL7RuKFHQhBoc5COZeIhrJqHiDsdloomlRmI+u4qQgHmxB7Pv6HCIMxkZ rQPw== X-Gm-Message-State: ALoCoQl3OW8Xd4xXJswdqpgazVAXelAzGZuHDoWkq6bcG0LSYFSnfle6/JiSAua0NvTb8WTSddKQ MIME-Version: 1.0 X-Received: by 10.152.5.133 with SMTP id s5mr235583las.78.1407478046010; Thu, 07 Aug 2014 23:07:26 -0700 (PDT) In-Reply-To: <20140808051201.GA4539@linux.vnet.ibm.com> References: <20140805054434.GA4390@linux.vnet.ibm.com> <140805085527.ZM28041@torch.brasslantern.com> <20140808051201.GA4539@linux.vnet.ibm.com> Date: Thu, 7 Aug 2014 23:07:25 -0700 Message-ID: Subject: Re: copying an array From: Bart Schaefer To: vogt@linux.vnet.ibm.com, Zsh Users Content-Type: multipart/alternative; boundary=089e013d0ffcf645bd0500180464 --089e013d0ffcf645bd0500180464 Content-Type: text/plain; charset=UTF-8 On Thu, Aug 7, 2014 at 10:12 PM, Dominik Vogt wrote: > > Is there a specific reason why typeset cannot initialize arrays? > In zsh, "typeset" is not a syntactic keyword, it's just an ordinary builtin command. So its arguments must follow the standard metacharacter, word-break, and quoting rules that apply to the arguments of any command. Parenthesized array-assignment syntax can't be used, and unlike "set" the arguments of "typeset" after the first are already given different semantics so they can't be interpreted as values of the array. --089e013d0ffcf645bd0500180464--