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

Re: converting parameter to words



-----BEGIN PGP SIGNED MESSAGE-----

Big Brother tells me that Bart Schaefer wrote:
> On Oct 13, 10:48am, Jack McKinney wrote:
> }
> } for i
> } do
> }   temp="$temp -r $i"
> } done
> } 
> } command $temp
> } 
> } From the man page, it sounds like ${^temp} or ${=temp} should
> } work, but neither does.
> 
> ${=temp} should have done it for you:
> 
> zagzig[562] x="foo -r bar -r baz"
> zagzig[563] print -l ${=x}

    Yep... this did it.  I found another bone-headed error in the script
that was causing the real problem.

- --
"Restore your inalienable human rights.             Jack McKinney
 Vote Libertarian.  http://www.lp.org               http://www.lorentz.com
 http://www.harrybrowne2000.org
F4 A0 65 67 58 77 AF 9B  FC B3 C5 6B 55 36 94 A6    jackmc@xxxxxxxxxxx

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBOedqbkZx0BGJTwrZAQG2FwQAhImbPTBIKB8lSNGQeGBpIQ8hiE+d6vXx
5GSgL827sA/YWNc0mJqSVkYSRyNp+aLckHpMI7PWHFAp/aBHrT8DDeuX43GtIWfw
zek+krAz50DsqEC24zkhz1ia9W+peAn8EooarnSH9JkJhPObhChKvg0yJ/vmIjO/
F/kSil5k3a4=
=lW0a
-----END PGP SIGNATURE-----



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