Dan Jacobson wrote:
> Another disown adventure.
> # suspend
> [1]+  Stopped                 su
> $ emacs -f gnus fileA &
> [2] 4865
> $ disown
> bash: warning: deleting stopped job 1 with process group 3457
> $ jobs
> [2]-  Running emacs -f gnus fileA &
> 
> $ help disown
> disown: disown [-h] [-ar] [jobspec ...]
>     By default, removes each JOBSPEC argument from the table of
>     active jobs. If the -h option is given, the job is not removed
>     from the table, but is marked so that SIGHUP is not sent to the
>     job if the shell receives a SIGHUP. The -a option, when JOBSPEC is
>     not supplied, means to remove all jobs from the job table; the -r
>     option means to remove only running jobs.
> 
> But you don't mention what should happen if given no arguments!

Like bg and fg, the other commands that deal with job specs in this
fashion, disown without arguments uses the current job (the one
marked with a `+' in the output of `jobs').

The shell prefers stopped jobs to running jobs when selecting the
`current' job.  The question is whether or not that is the right
thing to do.  It wasn't what you were expecting, it seems.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    [EMAIL PROTECTED]    http://cnswww.cns.cwru.edu/~chet/


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to