zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <Peter.Stephenson@csr.com>
To: zsh-workers <zsh-workers@zsh.org>
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
Date: Thu, 19 Apr 2012 09:36:45 +0100	[thread overview]
Message-ID: <20120419093645.40ae75fb@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <120418212700.ZM6913@torch.brasslantern.com>

On Wed, 18 Apr 2012 21:27:00 -0700
Bart Schaefer <schaefer@brasslantern.com> 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


  parent reply	other threads:[~2012-04-19  8:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-18 23:44 Andrew Pimlott
2012-04-19  4:27 ` Bart Schaefer
2012-04-19  4:37   ` Bart Schaefer
2012-04-19  8:36   ` Peter Stephenson [this message]
2012-04-19 14:40     ` Bart Schaefer
2012-04-19 21:11       ` Bug#303623: " Andrew Pimlott

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120419093645.40ae75fb@pwslap01u.europe.root.pri \
    --to=peter.stephenson@csr.com \
    --cc=303623-submitter@bugs.debian.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).