gnu.bash.bug
[Top] [All Lists]

Re: kill job vs. pid

Subject: Re: kill job vs. pid
From: prj@xxxxxxxxxxx (Paul Jarc)
Date: Sat, 26 Jul 2008 15:03:52 -0400
Newsgroups: gnu.bash.bug

Daniel Norton <danorton@xxxxxxxxx> 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 Thread] Current Thread [Next in Thread>