20 Jun
2003
20 Jun
'03
3:28 a.m.
Fred L. Drake, Jr. wrote:
Whatever happened to the old tried-but-true: i=`expr $i + 1`
nothing, its just overkill
I suspect using expr is more portable to the whole family of sh-derived shells than any of the more new-fangled ways.
Arithmetic expansion has been around for a long time, I wouldn't worry about it. -- Jamie Heilman http://audible.transient.net/~jamie/ "I was in love once -- a Sinclair ZX-81. People said, "No, Holly, she's not for you." She was cheap, she was stupid and she wouldn't load -- well, not for me, anyway." -Holly