Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: $! on bg



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