From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 923 invoked from network); 12 Aug 2005 02:08:07 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 Aug 2005 02:08:07 -0000 Received: (qmail 37297 invoked from network); 12 Aug 2005 02:08:01 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Aug 2005 02:08:01 -0000 Received: (qmail 2237 invoked by alias); 12 Aug 2005 02:07:54 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9300 Received: (qmail 2227 invoked from network); 12 Aug 2005 02:07:53 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 12 Aug 2005 02:07:53 -0000 Received: (qmail 36207 invoked from network); 12 Aug 2005 02:07:53 -0000 Received: from dsl3-63-249-88-2.cruzio.com (HELO dot.blorf.net) (63.249.88.2) by a.mx.sunsite.dk with SMTP; 12 Aug 2005 02:07:49 -0000 Received: by dot.blorf.net (Postfix, from userid 1000) id 7DBEC38B6; Thu, 11 Aug 2005 19:07:48 -0700 (PDT) Date: Thu, 11 Aug 2005 19:07:48 -0700 From: Wayne Davison To: Zsh Users Subject: Re: Printing arrays for use with $() Message-ID: <20050812020748.GA478@blorf.net> References: <20050811161654.GA8200@DervishD> <1050811163714.ZM2498@candle.brasslantern.com> <20050811222847.GA341@DervishD> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050811222847.GA341@DervishD> User-Agent: Mutt/1.5.9i X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 On Fri, Aug 12, 2005 at 12:28:47AM +0200, DervishD wrote: > The thing is that the 'printf' command prints the file names > exactly as I want them, within double quotes, but 'command' see those > double quotes... quoted. Any way of avoiding this? That's what "eval" is for -- it will re-evaluate the string, and the quotes will affect how the string is parsed into a command: eval "command" $(printf '"%s" ' $array) ..wayne..