Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: SUGGESTION: kill -l could show numbers, too
- X-seq: zsh-workers 20562
- From: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: SUGGESTION: kill -l could show numbers, too
- Date: Thu, 18 Nov 2004 10:12:33 -0600
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <20310.1100793917@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20041118145208.GD13232@xxxxxxxx> <20310.1100793917@xxxxxxx>
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