Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!boulder!sunybcs!rutgers!psuvax1!moby!tel From: tel@moby.UUCP (Tom Lowe) Newsgroups: comp.sys.att Subject: Re: infinite regress Message-ID: <201@Ahab.moby.UUCP> Date: Tue, 20-Oct-87 09:58:14 EDT Article-I.D.: Ahab.201 Posted: Tue Oct 20 09:58:14 1987 Date-Received: Thu, 22-Oct-87 00:29:29 EDT References: <3269@sol.ARPA> <144800004@tiger.UUCP> Organization: AT&T National Systems Support Center, South Plainfield, NJ Lines: 22 Summary: i get something different In article <144800004@tiger.UUCP>, rjd@tiger.UUCP writes: > > > How can one escape from an infinitely recursive ksh function, such as > > foo () { foo ; } > > > I guess I am missing something, because every Unix system I know of limits > a user to a number of process (such as 20). After the 20th iteration of this > recursive'ness, you should get an error saying something on the order of > "cannot fork".... (since each recursion will spawn a new process). I get "ksh: foo: recursive call" -- Tom Lowe {rutgers,gatech,huscb,burdvax,ihnp4,cbosgd}!psuvax1!moby!tel AT&T National Systems Support Center, S. Plainfield, NJ (1-800-922-0354) Please call only if you have an AT&T computer under Warranty or if you have an AT&T Maintenance Contract on your equipment.