bug-bash
[Top][All Lists]
Advanced

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

Re: kill job vs. pid


From: Paul Jarc
Subject: Re: kill job vs. pid
Date: Sat, 26 Jul 2008 15:03:52 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Daniel Norton <address@hidden> 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




reply via email to

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