Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Spaces in $()
- X-seq: zsh-users 8105
- From: Nikolai Weibull <zsh-users-list@xxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Spaces in $()
- Date: Sun, 24 Oct 2004 23:41:36 +0200
- In-reply-to: <20041024213148.GD9648@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20041024212204.GC9648@xxxxxxxxxxxxxxxxxx> <20041024213148.GD9648@xxxxxxxxxxxxxxxxxx>
* 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