From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23604 invoked by alias); 26 Apr 2012 20:48:08 -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: 17025 Received: (qmail 25295 invoked from network); 26 Apr 2012 20:48:07 -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=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.214.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=hgTsDiqmuYoGMQn4MIX7h2YZEWlhBIu+EkD5aA8nqi8=; b=KuZHzXJ0x7Y+yb9V5jjMFIQYGrCRi8SN8VaMmn53op2LyyASomNS2pZydmiby65Pgb zrBtKozANUP7Jr37/2wpJocmB6JGt83Zzj8+YZxoTIRPnzHVvTEOzC4llebNP7lth1ak znbzJWrxgShfjhvLIZ6aiZdXgWYBwUB0bII47C2mjTjlgdxALECzrBTn2qjeY8hLBojF t60gk2ACyLDvnZGHDJWvr2mNYWoaX2dvjIB43BOUh/acSMYwIoFgde5UrEmmf20yk+dy or9uJe1encucjnaiGOKEfOdA03e031gvVOjw4R7Mwz01IOYJcVJcpwChgYUk+JNRJc85 GyOg== MIME-Version: 1.0 Date: Thu, 26 Apr 2012 16:48:00 -0400 Message-ID: Subject: ${(s::)VAR} vs "${(s::)VAR}" From: Kynn Jones To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=00151759256878711d04be9b1a73 --00151759256878711d04be9b1a73 Content-Type: text/plain; charset=ISO-8859-1 Hi! I was surprised by the following (note that the first output consists of 3 lines while the second output consists of 4; the only difference between the two cases is that the first one iterates over ${(s::)VAR} while the second does so over its double-quoted variant, "${(s::)VAR}"): % (VAR=123; for c ( ${(s::)VAR} ) echo ">$c<") >1< >2< >3< % (VAR=123; for c ( "${(s::)VAR}" ) echo ">$c<") >1< >2< >3< >< Even after-the-fact I cannot explain this difference. I would appreciate a description of what's going on (and that, I hope, will lead to the sought-after explanation). Thanks! kj --00151759256878711d04be9b1a73--