From owner-freebsd-stable Mon Jul 16 12: 7:37 2001 Delivered-To: freebsd-stable@freebsd.org Received: from maniac.deathstar.org (maniac.deathstar.org [204.42.254.10]) by hub.freebsd.org (Postfix) with ESMTP id DDFCB37B405 for ; Mon, 16 Jul 2001 12:07:33 -0700 (PDT) (envelope-from cmc@ralf.org) Received: by maniac.deathstar.org (deathstar, from userid 20028) id F40FA28554; Mon, 16 Jul 2001 15:07:32 -0400 (EDT) Received: from maniac.deathstar.org (localhost [127.0.0.1]) by maniac.deathstar.org (deathstar) with ESMTP id D5CED190C1; Mon, 16 Jul 2001 12:07:32 -0700 (PDT) From: Charles Clark To: Donn Miller Cc: freebsd-stable@freebsd.org Subject: Re: kill list signals - newsyslog Date: Mon, 16 Jul 2001 12:07:27 -0700 X-Sender: cmc@maniac.deathstar.org Message-Id: <20010716190732.F40FA28554@maniac.deathstar.org> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > From: Donn Miller > kill -l shows all the signal numbers. Not really. "kill" is a builtin command for most any shell that you would use interactively, but not for /bin/sh (man builtin). If you run /bin/kill -l, or kill -l from most available shells (csh, tcsh, zsh) it lists the names of the signals on one line, in numerical order, but not their corresponding signal numbers. The builtin kill in bash (I have bash version 2.something installed; don't know about bash 1. versions) lists the signals in a table next to their signal numbers. The canonical place to look for the name/number mapping is where programs get it, ie /usr/include/sys/signal.h. If newsyslog really only takes numbers, it would be nice to have it take signal names for portability's sake. The name/number mappings are NOT the same across all unices. -- cmc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message