From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27350 invoked by alias); 2 Sep 2010 15:04:14 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15357 Received: (qmail 18012 invoked from network); 2 Sep 2010 15:04:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at fys.uio.no does not designate permitted sender hosts) Date: Thu, 2 Sep 2010 17:04:03 +0200 From: Haakon Riiser To: zsh-users@zsh.org Subject: Re: Problems with zsh's job control and running jobs Message-ID: <20100902150403.GA9741@snowbird.venod.com> References: <20100902134747.GA30650@whistler.venod.com> <20100902153026.192301a3@csr.com> <20100902153710.64d137cd@csr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100902153710.64d137cd@csr.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-UiO-Ratelimit-Test: rcpts/h 1 msgs/h 1 sum rcpts/h 1 sum msgs/h 1 total rcpts 345 max rcpts/h 8 ratelimit 0 X-UiO-Spam-info: not spam, SpamAssassin (score=-5.0, required=5.0, autolearn=disabled, UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO) X-UiO-Scanned: 91714B78DCA504CF34DB2E896AA5B27B6320C273 X-UiO-SPAM-Test: remote_host: 84.209.71.9 spam_score: -49 maxlevel 80 minaction 2 bait 0 mail/h: 1 total 269 max/h 5 blacklist 0 greylist 0 ratelimit 0 [Peter Stephenson] > On Thu, 2 Sep 2010 15:30:26 +0100 > Peter Stephenson wrote: > > > On Thu, 2 Sep 2010 15:47:47 +0200 > > Haakon Riiser wrote: > > > If not, is it possible to make "&" disown jobs by default? > > > > I got this to work. > > ... though it does exceed the requirements a bit. If you background a job, > it will pick it up and disown that. That may or may not be a feature. If > it isn't you need to look at a history to get this proposal to work. Thank you very much for this code! Not only did it solve my problem perfectly, it also taught me about the handy hooks mechanism. The fact that it disowns bg'd jobs is a feature in my book. :-) -- Haakon