From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14393 invoked from network); 27 Sep 2003 20:22:48 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 27 Sep 2003 20:22:48 -0000 Received: (qmail 13560 invoked by alias); 27 Sep 2003 20:22:43 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19147 Received: (qmail 13545 invoked from network); 27 Sep 2003 20:22:42 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 27 Sep 2003 20:22:42 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.3.58.249] by sunsite.dk (MessageWall 1.0.8) with SMTP; 27 Sep 2003 20:22:41 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h8RKMes10319 for zsh-workers@sunsite.dk; Sat, 27 Sep 2003 13:22:40 -0700 From: Bart Schaefer Message-Id: <1030927202240.ZM10318@candle.brasslantern.com> Date: Sat, 27 Sep 2003 20:22:40 +0000 In-Reply-To: <20030927111834.GA277@DervishD> Comments: In reply to DervishD "Re: Would this (o) be very difficult to add?" (Sep 27, 1:18pm) References: <20030923161213.GA772@DervishD> <1030923165535.ZM29098@candle.brasslantern.com> <20030924140114.GC411@DervishD> <20030927111834.GA277@DervishD> X-Mailer: Z-Mail (5.0.0 30July97) To: Zsh Subject: Re: Would this (o) be very difficult to add? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 27, 1:18pm, DervishD wrote: } Subject: Re: Would this (o) be very difficult to add? } } [...] I cannot use this in a command: command $(print -lP...) } results in 'command file name 1 file name 2', unquoted :((( Since you're using "print -l" you have the filenames one per line. Therefore, just quote the entire thing and split the output on newlines, and all should be well: command ${(f)"$(print -lP ...)"} Zsh is even clever enough to deal properly with nested double quotes when ${...} or $(...) are involved.