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:37]:
> Because that's the way it's supposed to work.  $(...) without
> surrounding double-quotes is split by IFS.

Sorry for responding to my own posts twice in a row.  Anyway, is the
lesson to always write code like

var="$(...)"

instead of

var=$(...)

?  I mean, in what situations do you want $(...) to be split by IFS in
scripts?
	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