> I don't believe that at all. The number of positional parameters is kept > anyway. It's not recalculated when you compare it to another number, so > it's just as fast as a simple comparison of two integers.
Getting the number $# is slow. > And even if it weren't -- if performance is *that* important to you, > you're using the wrong language altogether. There is no reason why bash has to be slow. Javascript was slow. But it has been optimized to be much faster than it was before. What I see bash is that it is syntax is much better than other languages in terms of interactive use and not use () for arguments? It could be made faster and with some additional features, it could be used for other more serious applications rather than just a glue of other tools. -- Regards, Peng