From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7072 invoked from network); 15 May 2006 16:11:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 15 May 2006 16:11:18 -0000 Received: (qmail 64414 invoked from network); 15 May 2006 16:11:10 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 May 2006 16:11:10 -0000 Received: (qmail 19481 invoked by alias); 15 May 2006 16:11:02 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10267 Received: (qmail 19472 invoked from network); 15 May 2006 16:11:01 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 15 May 2006 16:11:01 -0000 Received: (qmail 63384 invoked from network); 15 May 2006 16:11:01 -0000 Received: from vms042pub.verizon.net (206.46.252.42) by a.mx.sunsite.dk with SMTP; 15 May 2006 16:11:00 -0000 Received: from torch.brasslantern.com ([71.116.105.50]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IZB00CQNE9WG3M2@vms042.mailsrvcs.net> for zsh-users@sunsite.dk; Mon, 15 May 2006 11:10:45 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id k4FGAhtX005720 for ; Mon, 15 May 2006 09:10:44 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id k4FGAhJA005719 for zsh-users@sunsite.dk; Mon, 15 May 2006 09:10:43 -0700 Date: Mon, 15 May 2006 09:10:40 -0700 From: Bart Schaefer Subject: Re: Quoting =(command) In-reply-to: <20060326193417.C67912@dynamite.narpes.com> To: Zsh users Message-id: <060515091043.ZM5718@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <200603261837.k2QIbOow004386@pwslaptop.csr.com> <20060326193417.C67912@dynamite.narpes.com> Comments: In reply to "A. Wik" "Re: Quoting =(command)" (May 15, 3:17pm) On May 15, 3:17pm, A. Wik wrote: } } On Sun, 26 Mar 2006, Peter Stephenson wrote: } } > [This is probably more in the line of zsh-users.] } } I'm inclined to agree - however, not considering the point } of view of posting at the time of reading the subscription } instructions, I interpreted them as "just forget zsh-users } and join zsh-workers for the full range of content"... (but } I'll try it now.) It's more a matter of where it gets archived. zsh-users posts are forwarded to zsh-workers subscribers, but they are not archived with the zsh-workers material -- and obviously zsh-workers stuff is not archived with zsh-users. So someone searching for this answer after the fact is better served if it is in the zsh-users archive. } a workaround about as concise as can reasonably be expected: } } star -cv f=bak.tar list=${:-=(commands...)} } } Perhaps it should be mentioned or at least hinted at in the } context of the =() construct, as that was where I started } looking. I think this is more an FAQ than something for the base documentation. The whole idea of using ${:-word} with nothing to the left of the colon is an obscure zsh trick. It only works because of zsh's rules for parsing nested expansions; in other shells you get "bad substitution". I don't think the process substitition context is the right place to write about this, as it is only a subset of a more general "problem." Wanting a generated file name as as a substring of a longer argument word is a case that requires special handling no matter how the file name is being generated. E.g., I'm sure you would not have expected star -cv f=*.tar list=*.out to work. In this respect list==(...) is no different. --