zsh-workers
 help / color / mirror / code / Atom feed
* RFC: expand $'' within heredocs
@ 2022-09-28 20:30 Eric Cook
  2022-09-28 21:19 ` Mikael Magnusson
  2022-09-29  9:03 ` Jun T
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Cook @ 2022-09-28 20:30 UTC (permalink / raw)
  To: zsh-workers

Hey all,

bash 5.2[1] recently released and a change i found of interest is allowing $'' to be expanded
within heredocs. $'' is currently the only expansion that uses the `$' operator that doesn't
expand within heredocs(even $[] does); so i can see that edgecase being confusing in addition
to the feature just being useful.
cat <<eof
hello$'\t'world
eof
...


[1] https://lists.gnu.org/archive/html/help-bash/2022-09/msg00002.html
Not to bandwagon other shells, i just like the idea.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-29  9:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-28 20:30 RFC: expand $'' within heredocs Eric Cook
2022-09-28 21:19 ` Mikael Magnusson
2022-09-29  9:03 ` Jun T

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).