From: Nikolai Weibull <zsh-users-list@pcppopper.org>
To: zsh-users@sunsite.dk
Subject: Re: Spaces in $()
Date: Sun, 24 Oct 2004 23:31:48 +0200 [thread overview]
Message-ID: <20041024213148.GD9648@puritan.pcp.ath.cx> (raw)
In-Reply-To: <20041024212204.GC9648@puritan.pcp.ath.cx>
* Nikolai Weibull <zsh-users-list@pcppopper.org> [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);}
next prev parent reply other threads:[~2004-10-24 21:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-24 21:22 Nikolai Weibull
2004-10-24 21:31 ` Nikolai Weibull [this message]
2004-10-24 21:41 ` Nikolai Weibull
2004-10-25 1:12 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041024213148.GD9648@puritan.pcp.ath.cx \
--to=zsh-users-list@pcppopper.org \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).