Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: $! on bg
- X-seq: zsh-workers 22916
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list), pws@xxxxxxxxxxxxxxxxx
- Subject: Re: PATCH: $! on bg
- Date: Sun, 29 Oct 2006 12:58:51 +0000
- In-reply-to: Message from Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> of "Sat, 28 Oct 2006 10:51:19 PDT." <061028105119.ZM31030@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> } I haven't attempted to lever this into Sven's hack whereby the
> } shell can fork and allow you to put a job that was running
> } into the current shell into the background; however, it "might just
> } work", since the fudged job should already be in the job table by the
> } time you do "bg".
>
> No, it does not appear to work.
I meant after the patch, though I didn't make that clear. It works for me:
% while sleep 10; do : ; done
[1] + 3070 suspended while sleep 10; do; :; done
% bg
[1] + 3070 continued while sleep 10; do; :; done
% print $!
3070
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author