From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 817 invoked from network); 19 Apr 2005 23:02:12 -0000 Received: from ns2.primenet.com.au (HELO primenet.com.au) (?f2WZaSq85bxWCwe+IitjX/jOCfhsxIwo?@203.24.36.3) by ns1.primenet.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 19 Apr 2005 23:02:12 -0000 Received: (qmail 4805 invoked from network); 19 Apr 2005 18:38:11 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns2.melb.primenet.com.au with SMTP; 19 Apr 2005 18:38:11 -0000 Received: (qmail 28775 invoked from network); 19 Apr 2005 18:37:05 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Apr 2005 18:37:05 -0000 Received: (qmail 23074 invoked by alias); 19 Apr 2005 18:36:57 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8707 Received: (qmail 23059 invoked from network); 19 Apr 2005 18:36:56 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 19 Apr 2005 18:36:56 -0000 Received: (qmail 27741 invoked from network); 19 Apr 2005 18:36:56 -0000 Received: from mail36.messagelabs.com (193.109.254.211) by a.mx.sunsite.dk with SMTP; 19 Apr 2005 18:36:50 -0000 X-VirusChecked: Checked X-Env-Sender: okiddle@yahoo.co.uk X-Msg-Ref: server-15.tower-36.messagelabs.com!1113935809!16370670!1 X-StarScan-Version: 5.4.11; banners=-,-,- X-Originating-IP: [158.234.9.163] Received: (qmail 28925 invoked from network); 19 Apr 2005 18:36:49 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-15.tower-36.messagelabs.com with SMTP; 19 Apr 2005 18:36:49 -0000 Received: from trentino.logica.co.uk ([158.234.142.59]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id j3JIamZg018251; Tue, 19 Apr 2005 19:36:48 +0100 Received: from trentino.groupinfra.com (localhost [127.0.0.1]) by trentino.logica.co.uk (Postfix) with ESMTP id 7E24550D45; Tue, 19 Apr 2005 20:36:28 +0200 (CEST) Cc: Zsh Users X-VirusChecked: Checked X-StarScan-Version: 5.0.7; banners=.,-,- In-reply-to: <20050419072115.GA15936@fruitcom.com> From: Oliver Kiddle References: <20050419072115.GA15936@fruitcom.com> To: Eric Smith Subject: Re: globbing with interposition Date: Tue, 19 Apr 2005 20:36:28 +0200 Message-ID: <11234.1113935788@trentino.groupinfra.com> X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 Eric Smith wrote: > I want to be able in a simple command to glob all files > but there needs to be a `-a' in front of each globbed file name. > > So, I would like to do something like this (which obviously > dont work) in order to achieve the above. > > mutt eric -a fotos* -s "all images attached" The following works: files=( fotos* ) mutt eric {-a,$^files} -s "all images attached"