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

Re: Five New Test Failures



Vin Shelton wrote on Tue, 07 Jul 2020 10:14 -0400:
> Thanks, Bart.  That fixes four of the five failures.  All except this one:
> 
> ../../../src/zsh-2020-07-07/Test/E01options.ztst: starting.
> This test hangs the shell when it fails...
> Pattern match failed, line 1:
> -<zsh: sure you want to delete all 15 files in
> /opt/build/zsh-2020-07-07/Test/options.tmp \[yn\]\?
>  <zsh: sure you want to delete all <-> files in / \[yn\]\?
> +>nuc2% zsh: sure you want to delete all 15 files in
> /opt/build/zsh-2020-07-07/Test/options.tmp [yn]?
>  >nuc2% zsh: sure you want to delete all 28 files in / [yn]?

Well, it's my patch, but I can't reproduce the failure.  I'm guessing
it's the prompt at the start that causes it, but I'm not sure why it'd
be printed in Vin's setup but not in mine.

In the meantime, a theoretical fix for the case of /* expanding to more than 100 names:

diff --git a/Test/E01options.ztst b/Test/E01options.ztst
index c59509f2e..7b8e3940e 100644
--- a/Test/E01options.ztst
+++ b/Test/E01options.ztst
@@ -1449,4 +1449,4 @@ F:If this test fails at the first unsetopt, refer to P01privileged.ztst.
   BEL=$'\a'
 0q:RM_STAR_SILENT
 *>zsh: sure you want to delete all 15 files in ${PWD:h}/options.tmp \[yn\]\? ${BEL}
-*>zsh: sure you want to delete all <-> files in / \[yn\]\? ${BEL}
+*>zsh: sure you want to delete (more than <->|all <->) files in / \[yn\]\? ${BEL}



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