[Pacemaker] [PATCH] suggested bashism fixes for hb2openais.sh

Raoul Bhatia [IPAX] r.bhatia at ipax.at
Wed Jul 7 07:23:21 UTC 2010


On 07/07/2010 01:12 AM, Lars Ellenberg wrote:
>> -	let sw=sw+1
>> > +	sw=$((sw+1))
> all of these need to be sw=$(( $sw + 1 ))
> and similar.
> 
> ok, so it also works like this in "recent" dash.

oh... i wasn't aware of that. i used checkbashism on debian and made
the changes in reference to https://wiki.ubuntu.com/DashAsBinSh

i didn't know that they wouldn't be as compatible as possible.

thanks for pointing this out!
raoul
-- 
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc.          email.          r.bhatia at ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OG          web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            office at ipax.at
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15
____________________________________________________________________




More information about the Pacemaker mailing list