Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: globbing with interposition



    Hi Bart :)

 * Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> dixit:
> } 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.

    Oops, I did the assignment on one command line and the 'mutt'
command line in another. Well, in fact I had the array already filled
and I just used it. So I didn't catch the problem :(

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736
http://www.dervishd.net & http://www.pleyades.net/
It's my PC and I'll cry if I want to...



Messages sorted by: Reverse Date, Date, Thread, Author