Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!occrsh!occrsh.ATT.COM!tiger.UUCP!rjd From: rjd@tiger.UUCP Newsgroups: comp.sys.att Subject: Re: infinite regress Message-ID: <144800007@tiger.UUCP> Date: Thu, 22-Oct-87 11:35:00 EST Article-I.D.: tiger.144800007 Posted: Thu Oct 22 11:35:00 1987 Date-Received: Sun, 25-Oct-87 17:23:18 EST References: <3269@sol.ARPA> Lines: 15 Nf-ID: #R:sol.ARPA:-326900:tiger.UUCP:144800007:000:549 Nf-From: tiger.UUCP!rjd Oct 22 10:35:00 1987 > > > 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" > Sounds like you have already escaped from it then.... So what's the problem? Randy