From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1301 invoked from network); 24 Oct 2004 21:42:29 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 24 Oct 2004 21:42:29 -0000 Received: (qmail 39738 invoked from network); 24 Oct 2004 21:42:23 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 24 Oct 2004 21:42:23 -0000 Received: (qmail 24928 invoked by alias); 24 Oct 2004 21:41:38 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8105 Received: (qmail 24915 invoked from network); 24 Oct 2004 21:41:36 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 24 Oct 2004 21:41:36 -0000 Received: (qmail 38539 invoked from network); 24 Oct 2004 21:41:36 -0000 Received: from mxfep02.bredband.com (195.54.107.73) by a.mx.sunsite.dk with SMTP; 24 Oct 2004 21:41:34 -0000 Received: from puritan.pcp.ath.cx ([213.112.43.197] [213.112.43.197]) by mxfep02.bredband.com with ESMTP id <20041024214134.ZTNG44.mxfep02.bredband.com@puritan.pcp.ath.cx> for ; Sun, 24 Oct 2004 23:41:34 +0200 Received: by puritan.pcp.ath.cx (Postfix, from userid 1000) id CA4E5AE041; Sun, 24 Oct 2004 23:41:36 +0200 (CEST) Date: Sun, 24 Oct 2004 23:41:36 +0200 From: Nikolai Weibull To: zsh-users@sunsite.dk Subject: Re: Spaces in $() Message-ID: <20041024214136.GE9648@puritan.pcp.ath.cx> References: <20041024212204.GC9648@puritan.pcp.ath.cx> <20041024213148.GD9648@puritan.pcp.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041024213148.GD9648@puritan.pcp.ath.cx> User-Agent: Mutt/1.5.6i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: * X-Spam-Status: No, hits=1.5 required=6.0 tests=BAYES_44,RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 1.5 * Nikolai Weibull [Oct 24, 2004 23:37]: > Because that's the way it's supposed to work. $(...) without > surrounding double-quotes is split by IFS. Sorry for responding to my own posts twice in a row. Anyway, is the lesson to always write code like var="$(...)" instead of var=$(...) ? I mean, in what situations do you want $(...) to be split by IFS in scripts? nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}