rmap 15j for 2.4.21-rc6
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
Quoted 15 lines · Willy Tarreau
Hi !
Quoted 1 line · Andreas Hartmann
Michael Frank wrote:
<...>
Quoted 3 lines
Quoted 1 line
GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu)
2.02.1(1)-release
<...>
Quoted 6 lines
Quoted 5 lines
(quoted diff) +1
-1- while (( i-- )); do + while (( i=`expr $i - 1` )); doIn your opinion are your changes more portable across a wide range of systems?
Quoted 7 lines
Quoted 3 lines
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".
Works fine with 2.02.1, too.
Regards,
Andreas Hartmann