Arfrever Frehtes Taifersar Arahesis wrote on Mon, May 09, 2011 at 00:03:31 
+0200:
> 2011-05-08 13:53:14 danie...@apache.org napisaƂ(a):
> > +  FILECOUNT=`echo 2 \* $FILECOUNT | bc`
> 
> bc is an external program, which might be unavailable.
> The portable solution is $((...)) syntax:
> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_04
> 

I've checked the OpenBSD manpage and it indicated that bc was POSIX
compliant/compatible, so I assumed it was okay to use.

I haven't found yet an environment which doesn't support $((..)), so if
you're confident that that's more portable than bc than please do make
the change.

Thanks for the pointer/review.

Daniel

> -- 
> Arfrever Frehtes Taifersar Arahesis


Reply via email to