[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bash-bug
Subject:    Re: kill job vs. pid
From:       prj () po ! cwru ! edu (Paul Jarc)
Date:       2008-07-26 19:03:52
Message-ID: m34p6cpivk.fsf () multivac ! cwru ! edu
[Download RAW message or body]

Daniel Norton <danorton@gmail.com> wrote:
>   How do I tell bash to kill job 1, rather than pid 1 ?

man bash, in the section JOB CONTROL:
# There are a number of ways to refer to a job in the shell.  The
# character % introduces a job name.  Job number n may be referred to
# as %n.  A job may also be referred to using a prefix of the name
# used to start it, or using a substring that appears in its command
# line.  For example, %ce refers to a stopped ce job.

"kill %1" kills job 1; "kill 1" kills process 1.

Chet: it would probably be helpful to change that second sentence to
"The character % introduces a job name, or jobspec."  "jobspec" isn't
defined anywhere as fa r as I can see.


paul



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic