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

Re: Spaces in $()



* Nikolai Weibull <zsh-users-list@xxxxxxxxxxxxx> [Oct 24, 2004 23:29]:
> Why doesn't
>
> eval "$(echo 'v="s p a  c e s"')" && echo $v
>
> and
>
> eval $(echo 'v="s p a  c e s"') && echo $v
>
> produce the same result?

Because that's the way it's supposed to work.  $(...) without
surrounding double-quotes is split by IFS.

Man shell-quoting is a bitch,
	nikolai

--
::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}



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