Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: globbing with interposition
- X-seq: zsh-users 8703
- From: J <jean.chalard@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: globbing with interposition
- Date: Tue, 19 Apr 2005 17:36:20 +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=HgMgv9waWGHdcarWdHyyBkvVzZZmBrfgGmue0i0rCnKTaahah1tyzyMr5F7dOgEvMdEOPrvDED78JooNSpgTn8oloIckd2RxIf8m+bgJEgKNBCs46wF06Uc+SlGB5liu1Hw6MeXiYZMs7YoNzKqFNZxpQ8FHj9UcxwIUyVLhrBM=
- In-reply-to: <1050419152554.ZM31922@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050419072115.GA15936@xxxxxxxxxxxx> <fb6be96e05041901223a87e20e@xxxxxxxxxxxxxx> <1050419152554.ZM31922@xxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: J <jean.chalard@xxxxxxxxx>
> On Apr 19, 10:22am, J wrote:
> } Subject: Re: globbing with interposition
> }
> } a=(fotos*) mutt eric '-a '${^a} -s "all images attached" </dev/null
>
> That doesn't work because the order of assignment and expansion is not
> what you expect. That is, the ${^a} is expanded at parse time, but
> the assignment prefixes are handled at execute time. You'd have to do
Oh. I was bitten by the fact I tested it after I already give the
value to the array and assumed the variable was reassigned on this
line before evaluation. My bad.
Anyway, I should have been aware of the problems with the spaces in
filenames and the quoted space anyway.
Well, sorry for the noise.
--
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