Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jul 2001 21:35:55 +0100
From:      Ben Smithurst <ben@FreeBSD.org>
To:        Nuno Teixeira <nuno.mailinglists@pt-quorum.com>
Cc:        Charles Clark <cmc@ralf.org>, freebsd-stable@freebsd.org
Subject:   Re: kill list signals - newsyslog (newbie question)
Message-ID:  <20010716213555.E36238@strontium.shef.vinosystems.com>
In-Reply-To: <20010716212321.B417-100000@>
References:  <20010716014943.3AA1428554@maniac.deathstar.org> <20010716212321.B417-100000@>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
your PGP signature failed to verify, btw.

Nuno Teixeira wrote:

> su -l to root with csh shell:
> 
> # kill -l
> HUP INT QUIT ILL TRAP ABRT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM URG
> STOP TSTP CONT CHLD TTIN TTOU IO XCPU XFSZ VTALRM PROF WINCH INFO USR1 USR2
> 
> and my normal login with a bash shell:
> 
> [admin@ admin]$ kill -l
>  1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL
>  5) SIGTRAP      6) SIGABRT      7) SIGEMT       8) SIGFPE
>  9) SIGKILL     10) SIGBUS      11) SIGSEGV     12) SIGSYS
> 13) SIGPIPE     14) SIGALRM     15) SIGTERM     16) SIGURG
> 17) SIGSTOP     18) SIGTSTP     19) SIGCONT     20) SIGCHLD
> 21) SIGTTIN     22) SIGTTOU     23) SIGIO       24) SIGXCPU
> 25) SIGXFSZ     26) SIGVTALRM   27) SIGPROF     28) SIGWINCH
> 29) SIGINFO     30) SIGUSR1     31) SIGUSR2
> 
> Why it works like that?

Because the "kill" command is builtin to some shells (including bash and
csh) and their versions of "kill" treat the "-l" flag differently.  If
you ran the external "/bin/kill -l" command the result would be the same
regardless of the shell, but since these shells have their own "kill"
function you're not running the /bin/kill program normally.

-- 
Ben Smithurst / ben@FreeBSD.org

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE7U1ApbPzJ+yzvRCwRAhGZAJoDGKQTGJWn/uUmiqiym7dPiGDkTQCgg0lC
7hskRDkauSaGUo8f44pv4oQ=
=Norh
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010716213555.E36238>