zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: double quoted expansion question
Date: Fri, 07 Sep 2012 22:38:04 -0700	[thread overview]
Message-ID: <120907223804.ZM22838@torch.brasslantern.com> (raw)
In-Reply-To: <FDDD2573-9AF3-413D-A4BD-6AEC681A0B69@biskalar.de>

On Sep 7,  5:43pm, Sebastian Stark wrote:
}
} Wow, thanks. My mistake is that I thought that because the quotes are
} at the outermost level, the double quoted joining was not part of this
} and applied at the very end.

I can see how you might think that, but actually double-quoted-ness
applies all the way down the nested expansions from whatever level it
first encloses.

} For here-docs there seems to be yet another twist:

Hmm, that's an odd one -- certainly appears to be a bug.  Workaround
is to add an otherwise meaningless level of nesting:

cat <<EOF
${${(s:,:uo)${(j:,:)${(@)${(f)servers}/* /}}}}
EOF

-- 
Barton E. Schaefer


      reply	other threads:[~2012-09-08  5:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-07 12:31 Sebastian Stark
2012-09-07 12:47 ` Jérémie Roquet
2012-09-07 12:54   ` Jérémie Roquet
2012-09-07 14:36     ` Sebastian Stark
2012-09-07 14:41 ` Bart Schaefer
2012-09-07 15:43 ` Sebastian Stark
2012-09-08  5:38   ` Bart Schaefer [this message]

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=120907223804.ZM22838@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /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).