long arithmetics in dash, dash fix 4`The Shell: arithmetic comparison with void'
- To: debian-devel@lists.debian.org
- Subject: long arithmetics in dash, dash fix 4`The Shell: arithmetic comparison with void'
- From: Oleg Verych <olecom@flower.upol.cz>
- Date: Sun, 1 Jul 2007 20:28:31 +0200
- Message-id: <[🔎] E1I549v-0004Hq-Ql@flower>
- In-reply-to: <slrnf6qnfr.2k2.olecom@flower.upol.cz>
- References: <87irb1oegu.fsf@hardknott.home> <E1HxSLb-0003Gt-3B@flower> <slrnf6qnfr.2k2.olecom@flower.upol.cz>
* 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: