Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[bug] {fd}<<EOF
- X-seq: zsh-workers 44437
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: [bug] {fd}<<EOF
- Date: Thu, 20 Jun 2019 06:02:14 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:user-agent; bh=lZ+Dn9BeSs17H45vC3TMySoWmEW2xNPrPQXQvyDmagQ=; b=CC5TWaDIWDIpk7x1LdA0CFrqRX49WPN4O+DkL8vIuZD2Y/DNZN+B3FSQjd30yyR/mw T8ed+Ezi6t5XuxBoNmwKAvjmvia9a9B7Ibu9A67Bssl8L4ABP4tnvGFj3mYwvUP06MIO gO5swuRThANPbL0CJgb9RxbEcBiJ/cvjs5S/c64aZDkmQnIG8MdCHjtqL3EdZnPWUCYQ GcL3nEyhb5b671S4bkifM+1+IsZGLgtBPAYLoWU/WsZMuFJHoZbUcF3JgzNtwoDyVOc4 M1GSMGUGN9e/KWpmxnuZiG7099b5COVNo5pUjgBgt6zHJkcWOvBptqa/dKepzFcBcEjx 1DpQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
$ 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