[GRASS-dev] Re: [GRASS GIS] #496: g.rename vect=Map1, map1 doesn't work

GRASS GIS trac at osgeo.org
Tue Feb 17 18:20:53 EST 2009


#496: g.rename vect=Map1,map1 doesn't work
---------------------+------------------------------------------------------
  Reporter:  hamish  |       Owner:  grass-dev at lists.osgeo.org
      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>


More information about the grass-dev mailing list