Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[bug] {fd}<<EOF



$ 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



Messages sorted by: Reverse Date, Date, Thread, Author