Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: globbing with interposition
- X-seq: zsh-users 8700
- From: J <jean.chalard@xxxxxxxxx>
- To: Eric Smith <es@xxxxxxxxxxxx>
- Subject: Re: globbing with interposition
- Date: Tue, 19 Apr 2005 10:22:35 +0200
- Cc: Zsh Users <zsh-users@xxxxxxxxxx>
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=d/CSNEGARBt097yvuZLrZq8ansq1G71BUp13irpcGiPjyhhhwthOavR93yBUkS977gPs4FAhv4uJQ0En1JPrOPsaU6vHAKdQrLI9HEMvm9R2YDTpGe3LDWDNhcN+Z0O2qZTCsVppHaTvhalUfYkwEuy2yCxe0IrmjQM8FKWc/O8=
- In-reply-to: <20050419072115.GA15936@xxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050419072115.GA15936@xxxxxxxxxxxx>
- Reply-to: J <jean.chalard@xxxxxxxxx>
> 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.
>
> mutt eric -a fotos* -s "all images attached" </dev/null
I would suggest something like
a=(fotos*) mutt eric '-a '${^a} -s "all images attached" </dev/null
or
mutt eric '-a '${^$(print *)} -s "all images attached" </dev/null
This creates a temporary array containing all file names in the
globbing pattern and expands it with the RC_EXPAND_PARAM option set.
--
J
"If you wish to leave a record of your call,
please state your messij at the sound of the tone."
Messages sorted by:
Reverse Date,
Date,
Thread,
Author