[GRASS-dev] [grass-code I][566] g.rename fails to rename maps

Moritz Lennert mlennert at club.worldonline.be
Fri Dec 21 10:24:06 EST 2007


On 21/12/07 16:01, Patton, Eric wrote:
>> It's in manage:
>> http://trac.osgeo.org/grass/browser/grass/trunk/general/manage/cmd
> 
>> Moritz
> 
> Thanks for the pointer. Is it still a bug, though? Can anyone confirm?

Yup. It's due to line 28 in /general/manage/lib/do_rename.c (line

if (G_strcasecmp (old,new) == 0) return 1;

If you comment this out and recompile the lib and the command, it works. 
No idea why this is there. Unless someone objects, I'll remove that line.

Moritz


More information about the grass-dev mailing list