* ${(z)param} and here-document syntax
@ 2010-12-07 4:48 Bart Schaefer
0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 2010-12-07 4:48 UTC (permalink / raw)
To: zsh-workers
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-12-07 4:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-07 4:48 ${(z)param} and here-document syntax Bart Schaefer
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).