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

Re: bug in zsh wait builtin - rhbz#1150541



On Sun, 26 Oct 2014 13:41:00 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Oct 26,  7:01pm, Peter Stephenson wrote:
> } Subject: Re: bug in zsh wait builtin - rhbz#1150541
> }
> } Here's a test.
> } 
> } +# once.  The monitor option is irrelevant to the logic, so we'll make
> } +# our job easier by turning it off.
> } +  unsetopt monitor
> 
> That throws errors in some automated build environments.  Look for other
> places in A05 that fiddle with it.

Looks like we need this.

diff --git a/Test/A05execution.ztst b/Test/A05execution.ztst
index 589815f..042b2d0 100644
--- a/Test/A05execution.ztst
+++ b/Test/A05execution.ztst
@@ -254,7 +254,7 @@ F:anonymous function, and a descriptor leak when backgrounding a pipeline
 # other words, we rely on the test working repeatedly rather than just
 # once.  The monitor option is irrelevant to the logic, so we'll make
 # our job easier by turning it off.
-  unsetopt monitor
+  { unsetopt MONITOR } 2>/dev/null
   (exit 1) &
   one=$!
   (exit 2) &

pws



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