From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dns.primenet.com.au (dns.primenet.com.au [203.24.36.40]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id NAA00260 for ; Thu, 12 Sep 1996 13:38:57 +1000 (EST) Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by dns.primenet.com.au (8.7.5/8.7.3) with ESMTP id IAA01282 for ; Thu, 12 Sep 1996 08:23:50 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id SAA03894; Wed, 11 Sep 1996 18:09:48 -0400 (EDT) Resent-Date: Wed, 11 Sep 1996 18:09:48 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199609111949.VAA00266@hzoli.ppp.cs.elte.hu> Subject: Re: recursive function warnings ... To: dunc@ucc.gu.uwa.edu.au (Duncan Sargeant) Date: Wed, 11 Sep 1996 21:49:55 +0200 (MET DST) Cc: zsh-workers@math.gatech.edu In-Reply-To: <199609110637.OAA02883@mermaid.ucc.gu.uwa.edu.au> from Duncan Sargeant at "Sep 11, 96 02:37:09 pm" X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"7Od4h.0.my.iYpDo"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2130 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > anyway, I was just wondering about the possibility of an option or > something so that if a function calls itself recursively, a warning > message is printed, eg: > > Warning: function finger calls itself recursively. > > then maybe to stop this annoying message occurring again, one > specifies the function with the -r option, eg > function -r finger { ... > just in case the function needs to call itself recursively. But there are real shell functions which use recursion. Adding this feature would break them. Note that you can always use `command finger' to invoke the finger external command without knowing the exact pathname. Zoli