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 / [EMAIL PROTECTED]

PGP signature

Reply via email to