Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: incrementing variables Message-ID: <3098@auspex.auspex.com> Date: 29 Mar 90 20:04:34 GMT References: <1508@uc.msc.umn.edu> Organization: Auspex Systems, Santa Clara Lines: 9 >A couple of weeks ago someone asked how to increment a variable in Bsh and >in response to that it was mentioned that writting a C program to do it >would be much quicker. I presume they meant that doing the whole loop in C would be faster; it's not particularly surprising that your program isn't faster, since a lot of the time in both examples is spent firing up "exec" or your program, and only a small amount of time is spent in the "expr" example parsing the expression, etc..