Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Preserve DPUTS output in comptest-based tests
- X-seq: zsh-workers 54798
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Preserve DPUTS output in comptest-based tests
- Date: Wed, 17 Jun 2026 18:13:04 -0700
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gD2rCVCLS6GjV5cPrpz4aTrOa+WuBUymmfOzeWovWGU=; fh=BgAYDYpL6Ne/A5nWEMVJiHiBtrz8Imz3uf26RDwgQX4=; b=bHqHq0YO2NyM+yZ5QenH/wrmI2aWt/8LEX5Hs/V0EVW/+qzbGSI57It7a55uUEwksm OgFu+s5424PYGuEbQ9tlbEr77AmOX9DBzkAgwKxq68S9OGHna0go/Gl1l4U8BV9SmdH9 iHrfrh5uuRliQCCcgTysp1yz8wyOAYIRcxEQQF3AXPRBoAJLkVyJ7MQi9SCPhkOyEean xkXmJuuAutPGHaFcyyNWpbaPy9l34J8NmsPCfNqClGFWXHQpiggmQL6BmJ2fpmMlYaAc qj4pFm1+MLLvZ02JKtsO2ji8nvq5b61nSr724SajPTFqGOjuNpLX5zFUSy42JQd4rr7j 1zTA==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1781745196; cv=none; d=google.com; s=arc-20240605; b=jQD/6LlOCKCFehnzRnGb1E9Qfg9L3iO963QwEsizpe7aoBOwiC7mO4V4akDQTgDSMj ABKbY8el/EnB6u59Do57QEFRe0yp/CxBeInWAWFA+R+Ne0aUyKJ6Q1xOr+8NgFqSafBC NTr3fTj0hGVQKJVnqi1BveeUp5l0v2dmaV8XmAFyzoGMF3Ae6vASfVlXm5PY8GayHtnf Y2qW5hsqOGGWqrw0oRc/zMqRNzOAZ6G0lecugODajyorFJEoJIdzMTFSlwy5pdQ7fSkc /EMh10rOvdzX2eSq904jex7Zt822S9NHDqW8Rkx0Zjf7h/E3+3CtU/5UVAuhxMMswK5+ sOrQ==
- Archived-at: <https://zsh.org/workers/54798>
- In-reply-to: <CAGdYchuXO1BJjTmm+4HODejQftr9HRpFysENt9E-Z--3DTEq8g@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAGdYcht32_OWShJ-fzd2fZ0XcTdVCu292AWTSquVDKpzHQrhaw@mail.gmail.com> <CAHYJk3TnmE4eRh_K_yEEAS9OPkCOBVgT71Lst2A5LZ7dOZt1AQ@mail.gmail.com> <CAGdYchuXO1BJjTmm+4HODejQftr9HRpFysENt9E-Z--3DTEq8g@mail.gmail.com>
On Wed, Jun 17, 2026 at 5:45 PM Philippe Altherr
<philippe.altherr@xxxxxxxxx> wrote:
>
> One thing I don't like too much with the current patch is that it doesn't respect the output order.
> The DPUTS messages appear in between other messages, presumably in the order they were found in the output.
> I'm wondering whether tackling this ordering issue would be worth the added complexity.
This is probably happening because the PTY output is being buffered --
I suspect in the case where they are grouped together it's not
line-buffered and where they are separated it is line-buffered, though
what you may have done to change it I don't immediately see.
It's probably more helpful to have the DPUTS output appear adjacent to
the input that triggered it, even though strictly speaking DPUTS
should be treated like stderr rather than like "normal" test output.
You could experiment with having zpty_handle_dputs use "print -u2".
Messages sorted by:
Reverse Date,
Date,
Thread,
Author