Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug? Output not flushed?
- X-seq: zsh-workers 52146
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Bug? Output not flushed?
- Date: Fri, 15 Sep 2023 09:56:17 -0700
- Archived-at: <https://zsh.org/workers/52146>
- List-id: <zsh-workers.zsh.org>
Easily reproduced:
% { print XXX; return 0; } >| /tmp/newfile; print $(</tmp/newfile)
% print $(</tmp/newfile)
XXX
That is, when a return statement appears in a current-shell complex
list, the output is not flushed until the parser reaches the top level
again. If the return statement is removed, all is well:
% { print YYY; } >| /tmp/newfile; print $(</tmp/newfile)
YYY
%
Any idea where to start looking for this?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author