As Weddington, Eric wrote:

[Things that don't work on Solaris' /bin/sh]

> > . shell arithmetics, use expr instead.

> Ok, I'm not a Unix guy. What do you mean by the last statement
> above? Does this mean that my solution won't work on Solaris?

Ah well, you're right.  It's the $(( ... )) stuff, that has been
introduced by Posix but is not available on Solaris' elderly /bin/sh.

However, without really running the script modified by your patch, I
couldn't figure out why you were using $(( )) at all.  After all,
there's no real arithmetic expression inside the parenthesis.  The
test command's -gt/-lt operators force their operands to be treated as
integer values anyway.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to