[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kill builtin incorrectly works with -s -n and -PGID options
From: |
Eric Blake |
Subject: |
Re: kill builtin incorrectly works with -s -n and -PGID options |
Date: |
Fri, 11 Dec 2009 06:17:36 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Roman Rakus on 12/11/2009 6:08 AM:
> kill builtin incorrectly thinks that -PGID is signal name even if the
> signal name is set by -s or -n option.
>
> [rrakus@dhcp-lab-170 ~]$ kill -s TERM -5032
> bash: kill: 5032: invalid signal specification
Not necessarily a bug. POSIX requires that portable shell use:
kill -s TERM -- -5032
when targetting a process group. But it is certainly an area for QoI
enhancement, if Chet wants to accept your patch as an extension allowed by
POSIX.
- --
Don't work too hard, make some time for fun as well!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAksiRnAACgkQ84KuGfSFAYCAHgCfe+m7Q9wz6++tlwUYaKgC6QtI
zHAAnA+I9JLRBOovsr/gyqcQPqGaZw5e
=aXWm
-----END PGP SIGNATURE-----