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

Re: Printing arrays for use with $()

    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