From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10382 invoked by alias); 24 Mar 2013 03:28:35 -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: 17732 Received: (qmail 21496 invoked from network); 24 Mar 2013 03:28: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=-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 autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.223.182 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=1q0TvjTbLqiNJ6cJPQNGv3PMqIzJqdxUmpX7fjtrLLY=; b=BnE6pJIhIw5xCPUVUBPkAZJL5b8YISzJcKKvuE48E0eQnAGPhGDjjLC8OZY5jrjdAZ 9rX8CdF2svrvxXhrHwdvu9+gskrjMc2+/NzqpatXOSrSXEI18msiqhei7sy+G/roD2zo 1rXskRS6ilarC2R9RxCah6d8cIIOPLVIKqIRJcKcdL2D56xVz5mq8gsRPVXCKG5tZrAf kKzfsUR9aSk7/j1lrGwswXzQjZip+DlROUFR1aHWICLDUtV1ljeDyzUP01Hpzpmv9dCk pbFlShIkMkgUXZ4t2S3jB/Ju3xfOmOKfscC97NzlCLO+jCh6Av5wdEEbxbHF9Pb82SaR xejg== X-Received: by 10.50.130.3 with SMTP id oa3mr3902398igb.76.1364095706693; Sat, 23 Mar 2013 20:28:26 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20130324030938.GA70966@redoubt.spodhuis.org> References: <20130324030938.GA70966@redoubt.spodhuis.org> From: TJ Luoma Date: Sat, 23 Mar 2013 23:27:46 -0400 Message-ID: Subject: Re: why isn't IFS=$'\n' doing what I expect it to do here? To: Zsh-Users List , zsh-workers+phil.pennock@spodhuis.org Content-Type: multipart/alternative; boundary=047d7b41879109896904d8a34882 --047d7b41879109896904d8a34882 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, Mar 23, 2013 at 11:09 PM, Phil Pennock < zsh-workers+phil.pennock@spodhuis.org> wrote: > > Is that closer? > > Note though that leading (and trailing) whitespace becomes significant. > > Similarly, you can use: > APPS=3D(${=3D${:-' > for the first line, to actually split on $IFS, in which case changing > IFS does affect parsing here. > > -Phil > If I do that then I can no longer use "$f[5]" to refer to the 5th _line_ = =E2=80=A6 I end up getting a single character instead of a line. That said, at least I understand why it's not working as I expected it to. For my purposes, I think "APPS=3D(" is fine, I'll just need to remember to escape the \ or wrap everything in " Thanks! TjL --047d7b41879109896904d8a34882--