[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

long arithmetics in dash, dash fix 4`The Shell: arithmetic comparison with void'



* Date: Mon, 11 Jun 2007 14:24:24 +0000 (UTC)

> Yet arithmetic ones are still with them:
>
>|-*-	       
> olecom@flower:/tmp$ bash -c "test '' -eq 0 ; echo \$?"
> bash: line 0: test: : integer expression expected
> 2
> olecom@flower:/tmp$ dash -c "test '' -eq 0 ; echo \$?"
> 0
> olecom@flower:/tmp$ busybox sh -c "test '' -eq 0 ; echo \$?"
> 0
> olecom@flower:/tmp$
>|-*-

Proposed fixing in the dash: #431320

Maybe somebody interested in making dash use "long int", thus enabling
wider range on 64bit platforms, while still having same on 32bit ones?

Patch for test built-in is ready, now i'm thinking about arithmetics.
Long int is used internally, but then casted to int, that's why
changes are very small indeed.
____



Reply to: