zsh-workers
 help / color / mirror / code / Atom feed
* [bug] {fd}<<EOF
@ 2019-06-20  5:02 Stephane Chazelas
  2019-06-24 19:02 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Stephane Chazelas @ 2019-06-20  5:02 UTC (permalink / raw)
  To: Zsh hackers list

$ zsh -xc $': {fd}<< EOF\nEOF'
+zsh:1> [[ - $'\C-D'zsh:1: bad cond code
 ]]

On the more complicated code I first ran into the problem, it
was crashing with "out of memory".

exec {fd}<<EOF
EOF

is a bash-compatible way to get a temp file that automatically
cleans up on exit. Needs Linux or Cygwin to manipulate it with
/dev/fd/$fd

-- 
Stephane

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

end of thread, other threads:[~2019-06-24 19:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-20  5:02 [bug] {fd}<<EOF Stephane Chazelas
2019-06-24 19:02 ` Peter Stephenson

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