BTW, there is another rather serious bug in r.out.gdal (the C one;
r.out.gdal.sh is safer) which corrupts GeoTIFFs being exported from GRASS.
r.out.gdal sets NoData wrong:
http://wald.intevation.org/tracker/index.php?func=detail&aid=405&group_id=21&atid=204
Maciek