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

Re: [PATCH] zsh_eval_context: add math context



On Mon, Jun 22, 2026 at 4:18 AM dana <dana@xxxxxxx> wrote:
>
> On Mon 22 Jun 2026, at 01:52, Jun T wrote:
> > ': >( cmd )' and '() { echo > $1 } >( cmd )' are handled by getproc()
> > but ': > >( cmd )' is handled by getpipe() (both are in exec.c).
> > I thought you wanted to test both cases.
>
> oh, i completely missed the next line, sorry again. tbh i don't remember
> my thought process, but i suppose it's as you say. please commit as you
> see fit

This commit makes the test randomly fail for me.

% typeset -i success=0 fails=0; repeat 100; do if /usr/bin/make
TESTNUM=D04 check; then success+=1; else fails+=1; fi; done; typeset
-p success fails
typeset -i success=79
typeset -i fails=21

(With the patch reverted, it always succeeds)

The error is not super helpful:
D04parameter.ztst: starting.
D04parameter.ztst: failed: SIGPIPE.

-- 
Mikael Magnusson




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