Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Printing arrays for use with $()
- X-seq: zsh-users 9302
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: Printing arrays for use with $()
- Date: Fri, 12 Aug 2005 09:45:40 +0200
- Cc: Zsh Users <zsh-users@xxxxxxxxxx>
- In-reply-to: <20050812020748.GA478@xxxxxxxxx>
- Mail-followup-to: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
- References: <20050811161654.GA8200@DervishD> <1050811163714.ZM2498@xxxxxxxxxxxxxxxxxxxxxxx> <20050811222847.GA341@DervishD> <20050812020748.GA478@xxxxxxxxx>
Hi Wayne :)
* Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx> dixit:
> On Fri, Aug 12, 2005 at 12:28:47AM +0200, DervishD wrote:
> > The thing is that the 'printf' command prints the file names
> > exactly as I want them, within double quotes, but 'command' see those
> > double quotes... quoted. Any way of avoiding this?
> That's what "eval" is for -- it will re-evaluate the string, and the
> quotes will affect how the string is parsed into a command:
> eval "command" $(printf '"%s" ' $array)
Been there, done that... and it didn't work :? But obviously I
did something wrong, because it DOES work now. Probably I was tired
enough to make a typo and don't seeing it...
Thanks a lot, Wayne :) It's not the perfect solution but I think
it would do by now.
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author