From: Todd Benson Date: 2008-03-19T20:13:43+09:00 Subject: Re: using system to echo "hello world" gives SystemStackError On Wed, Mar 19, 2008 at 5:00 AM, Thufir wrote: > I can't fathom this error regarding the stack: > > thufir@arrakis:~/sun_tutorial$ > thufir@arrakis:~/sun_tutorial$ cat build.rb > require 'compile' > > > compile > thufir@arrakis:~/sun_tutorial$ > thufir@arrakis:~/sun_tutorial$ cat compile.rb > def compile > system(echo compile) > end > thufir@arrakis:~/sun_tutorial$ > thufir@arrakis:~/sun_tutorial$ ruby build.rb > ./compile.rb:2: warning: parenthesize argument(s) for future version > ./compile.rb:2:in `compile': stack level too deep (SystemStackError) > from ./compile.rb:2:in `compile' > from build.rb:4 > thufir@arrakis:~/sun_tutorial$ > thufir@arrakis:~/sun_tutorial$ > > > > > thanks, > > Thufir I don't know anything about compile. But with #system, I think you are supposed to have the parameter in quotes. Right now, your function is recursive with no exit. Todd