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