Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!twitch!grt From: grt@twitch.UUCP ( G.R.Tomasevich) Newsgroups: comp.sys.att Subject: Shell recursion Message-ID: <806@twitch.UUCP> Date: Wed, 21-Oct-87 14:49:53 EDT Article-I.D.: twitch.806 Posted: Wed Oct 21 14:49:53 1987 Date-Received: Sat, 24-Oct-87 09:34:42 EDT References: <3269@sol.ARPA> <144800004@tiger.UUCP> <201@Ahab.moby.UUCP> Sender: news@twitch.UUCP Organization: AT&T Bell Labs, Holmdel, NJ Lines: 14 Summary: function using argument is different Someone asked about escaping from foo () { foo ; } Someone else gets "ksh: foo: recursive call" I tried it and got the same result. Then I tried foo () { echo $1; foo `inc $1` ; } where 'inc' is essentially main(n,a) int n; char **a; { printf("%d\n",atoi(a[1])+); } It is up to 216 and counting. A number comes out every 2-3 seconds. Why is this so high? I see no real difference from the case which uses no arguments. -- George Tomasevich, ihnp4!twitch!grt AT&T Bell Laboratories, Holmdel, NJ