From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19895 invoked by alias); 19 Apr 2012 14:40:45 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30422 Received: (qmail 2135 invoked from network); 19 Apr 2012 14:40:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <120419074013.ZM7867@torch.brasslantern.com> Date: Thu, 19 Apr 2012 07:40:13 -0700 In-reply-to: <20120419093645.40ae75fb@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: Follow-up: CHECK_JOBS doesn't work when only one command was run since last Control-D" (Apr 19, 9:36am) References: <1334792501-sup-5154@pimlott.net> <120418212700.ZM6913@torch.brasslantern.com> <20120419093645.40ae75fb@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers Subject: Re: Follow-up: CHECK_JOBS doesn't work when only one command was run since last Control-D Cc: <303623-submitter@bugs.debian.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Apr 19, 9:36am, Peter Stephenson wrote: } } It should surely be possible to fix it properly, somehow, so that if } you've just looked at the jobs it will still exit but if you've executed } anything else it won't. Yes, that would be accomplished by removing stopmsg = 2 from zexit() but leaving stopmsg = 2 in bin_jobs(). However, as I mentioned in follow-up, I fear the assignment in zexit() may have an additional purpose, such as forcing the shell to get two consecutive zero-length reads on SHIN in order to kill jobs and exit. It's a little tricky to test this and I haven't had a chance yet. -- Barton E. Schaefer