Re: [PATCH] rmap 15j for 2.4.21-rc6

Willy Tarreau (willy@w.ods.org)
Mon, 2 Jun 2003 21:37:39 +0200


Hi !

On Mon, Jun 02, 2003 at 06:55:48PM +0200, Andreas Hartmann wrote:
> Michael Frank wrote:
<...>
> > GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu)
>
> 2.02.1(1)-release
<...>
> > - while (( i-- )); do
> > + while (( i=`expr $i - 1` )); do
> >
> > In your opinion are your changes more portable across a wide range of
> > systems?
>
> I didn't think at portability :-). I only made it working for me. Maybe
> there are other persons out there who do have some old versions too - so
> they can use this patch.

Well, I found that i--/i++ don't work with bash-2.03 (present about everywhere)
but i=i-1 or i=i+1 work well. So at least, for portability, this could be
rewritten as "while (( i=i-1 )); do".

Cheers,
Willy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/