From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20228 invoked from network); 29 May 2001 15:14:19 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 29 May 2001 15:14:19 -0000 Received: (qmail 27613 invoked by alias); 29 May 2001 15:14:09 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14543 Received: (qmail 27571 invoked from network); 29 May 2001 15:14:06 -0000 From: "Bart Schaefer" Message-Id: <1010529151211.ZM13398@candle.brasslantern.com> Date: Tue, 29 May 2001 15:12:11 +0000 In-Reply-To: <200105290928.LAA09000@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: Disowning a stopped job" (May 29, 11:28am) References: <200105290928.LAA09000@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Re: Disowning a stopped job MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 29, 11:28am, Sven Wischnowsky wrote: } Subject: Re: Disowning a stopped job } } Bart Schaefer wrote: } } > Using "disown" on a stopped job leaves the job stopped. There should be at } > least a warning about this. } } Nobody answered -- or did I miss something? It's been difficult to get opinions out of people lately. I think we're having -pre-X burnout. } The other possibilities would of course be to generate an error, not } disowning the job or to call makerunning() on it before clearing the job } table entry. } } Of these, I think I prefer the former. The user can then still call `bg' } and then `disown'. I suppose the former with an option to do the latter would not work, as bg/fg/disown have always interpreted their first argument as a string to match against job names. Here's the thing to consider: `disown %1' is equivalent to `%1 &!'. I won't go so far as to say it's "intuitive," but the latter certainly looks as though it should cause the job to run. Would it be weird (or even possible) to have those two variants work in different ways in this case? -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net