Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: SUGGESTION: kill -l could show numbers, too



In the last episode (Nov 18), Peter Stephenson said:
> Christian =?iso-8859-1?Q?H=F6ltje?= wrote:
> > I have a suggestion for the kill builtin:
> > 
> > It would be nice if when you did '-l' to show the list of signal
> > that it show the signal number.
> 
> Not quite as convenient, but try this function:
> 
> kill-l() {
>   for i in {1..$#signals}; do
>     print $((i-1))\) SIG$signals[$i]
>   done | pr -t5
> }

You probably want to strip ZERR and DEBUG out of that list beforehand :)

-- 
	Dan Nelson
	dnelson@xxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author