#496: g.rename vect=Map1,map1 doesn't work
---------------------+------------------------------------------------------
Reporter: hamish | Owner: [email protected]
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: Vector | Version: 6.4.0 RCs
Resolution: | Keywords: g.rename
Platform: Linux | Cpu: x86-32
---------------------+------------------------------------------------------
Comment (by hamish):
mmph.
how about a warning then:
{{{
Index: general/manage/cmd/rename.c
===================================================================
--- general/manage/cmd/rename.c (revision 35912)
+++ general/manage/cmd/rename.c (working copy)
@@ -84,8 +84,8 @@
G_warning(_("<%s> is an illegal file name"), new);
continue;
}
- if (strcmp(old, new) == 0) {
- G_warning(_("%s=%s,%s: files are the same, no rename
required"),
+ if (strcasecmp(old, new) == 0) {
+ G_warning(_("%s=%s,%s: files could be the same, no rename
possible"),
parm[n]->key, old, new);
continue;
}
}}}
(afaict this only affects g.rename)
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/496#comment:2>
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev