From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: ${(z)param} and here-document syntax
Date: Mon, 06 Dec 2010 20:48:28 -0800 [thread overview]
Message-ID: <101206204828.ZM2894@torch.brasslantern.com> (raw)
I suggested this over in a thread on zsh-users:
zshaddhistory() { print -sr "${(z)1%%$'\n'}"; return 1 }
However, when $1 contains a here-document, this produces e.g.
cat << EOF ; blather to the history ; bother to the whole story ; EOF
I'm not precisely sure what it *should* do, except perhaps to treat the
entire here-document as a single parse token and retain the embedded
newlines.
reply other threads:[~2010-12-07 4:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=101206204828.ZM2894@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@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).