From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19276 invoked by alias); 19 Apr 2012 08:37:42 -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: 30421 Received: (qmail 3557 invoked from network); 19 Apr 2012 08:37:37 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Thu, 19 Apr 2012 09:36:45 +0100 From: Peter Stephenson To: zsh-workers CC: <303623-submitter@bugs.debian.org> Subject: Re: Follow-up: CHECK_JOBS doesn't work when only one command was run since last Control-D Message-ID: <20120419093645.40ae75fb@pwslap01u.europe.root.pri> In-Reply-To: <120418212700.ZM6913@torch.brasslantern.com> References: <1334792501-sup-5154@pimlott.net> <120418212700.ZM6913@torch.brasslantern.com> Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.101.10.18] X-Scanned-By: MailControl 7.7.0 (www.mailcontrol.com) on 10.71.1.143 On Wed, 18 Apr 2012 21:27:00 -0700 Bart Schaefer wrote: > 1. You type exit (or hit ^D) and the shell says you still have jobs. > > 2. You type "jobs" to find out what is still running. > > 3. There's nothing interesting in the jobs list (you just want them > to die). > > 4. You type exit (or ^D) again. > > 5. Zsh deliberately ignores the fact that you ran a command between > the two exits, and simply goes away without further complaint. > > I *think*, if we no longer care to provide this particular (mis?)feature, > that it would be OK to remove the "stopmsg = 2" from builtin.c:zexit(). > However, I'm not entirely confident there aren't other side-effects. 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. However, I don't think having to type ^D twice in any case is particularly bad (though I do recall occasions in the completion system where Sven spent some time adding features to avoid a user having to type A WHOLE EXTRA CHARACTER). pws Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog