From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10808 invoked from network); 18 Nov 2004 16:06:40 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Nov 2004 16:06:40 -0000 Received: (qmail 36659 invoked from network); 18 Nov 2004 16:06:34 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Nov 2004 16:06:34 -0000 Received: (qmail 21305 invoked by alias); 18 Nov 2004 16:06:19 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20561 Received: (qmail 21292 invoked from network); 18 Nov 2004 16:06:19 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 18 Nov 2004 16:06:19 -0000 Received: (qmail 36093 invoked from network); 18 Nov 2004 16:05:20 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 18 Nov 2004 16:05:18 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Thu, 18 Nov 2004 16:04:08 +0000 Received: from csr.com ([10.102.144.127]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 18 Nov 2004 16:05:11 +0000 To: zsh-workers@sunsite.dk Subject: Re: SUGGESTION: kill -l could show numbers, too In-reply-to: <20041118145208.GD13232@gerf.org> References: <20041118145208.GD13232@gerf.org> Date: Thu, 18 Nov 2004 16:05:17 +0000 Message-ID: <20310.1100793917@csr.com> From: Peter Stephenson X-OriginalArrivalTime: 18 Nov 2004 16:05:11.0486 (UTC) FILETIME=[61E4FDE0:01C4CD88] X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=BAYES_50 autolearn=no version=2.63 X-Spam-Hits: 0.0 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 } -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************