bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: disown, fg, jobs


From: Dan Jacobson
Subject: Re: disown, fg, jobs
Date: 22 Jun 2001 08:51:58 +0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Thanks fellas for checking over my problem.  I will now add what goes
thru the mind of John Q Beginning User when this happens.  John isn't
up on manual reading too much.  I'm just trying to improve your user
interface for non-expert users.

>>>>> "Dan" == Dan Jacobson <jidanni@kimo.FiXcomTHiS.tw> writes:

Dan> Is there something funny going on here in bash 2.04?:
Dan> 0/tmp$ sleep 66666
Dan> ^Z
Dan> [1]+  Stopped                 sleep 66666
Dan> 0/tmp$ sleep 2222&
Dan> [2] 1196

I will disown my last job so that it won't get hurt if I hit ^D in
this window:

Dan> 0/tmp$ disown
Dan> bash: warning: deleting stopped job 1 with process group 1195

Huh?  Why did it go and operate on _that_ job, I wanted it to operate
on _this_ job.  Not only did it operate on _that_ job, it did a very
rude thing, it killed it, or at least gave me no way to get back to
it.  Funny, disown works fine but that is when I only had one job
in the background... now that there are other earlier stopped jobs, it
apparently hunts them down first... what a surprise.  But of course I
didn't read up on what disown actually does, just used it lots in the
vanilla situation.

Dan> 0/tmp$ fg
Dan> bash: fg: current: no such job

Hurmf, in the past fg always got me something if there was something
to get... well, I guess all is lost and I might as well close this window.

Dan> 1/tmp$ jobs
Dan> [2]-  Running                 sleep 2222 &
Dan> 0/tmp$ fg
Dan> bash: fg: current: no such job

Ah ha, there is something left after the destruction.  Well, one would
think that fg, the thing that my brain uses for 15 years to pull back
those jobs, could be updated to tell me.  I mean, doesn't it point to
different things all day long, why can't it now point to %2?

Dan> 1/tmp$ fg %2
Dan> sleep 2222

Dan> there is at least one line in here that is less than ideal, no?

Anyways, here's what I now use to make new bullet proof windows [doesn't worry
about if the invoking window was hit with a ^D or ALT F4]:

$ emacs -f gnus mapping/mountain_angles/ & disown %emacs
$ konsole -e su& disown %konsole
because a plain disown got me burnt if there was more than one job.
-- 
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]