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

GRASS GIS trac at osgeo.org
Tue Feb 17 17:08:32 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 glynn):

 Replying to [ticket:496 hamish]:

 > {{{
 > g.rename vect=Map1,map1
 > }}}
 >
 > is a no-op. The map is not renamed. :(

 This is intentional.

 > perhaps due to some MS-Windows accommodation which has gone too far?

 It's more accurate to say "non-Unix filesystem accommodation"; you can use
 [V]FAT, NTFS, SMB/CIFS, etc filesystems from Unix.

 The problem is that if we used a case-sensitive check and the filesystem
 happens to be case-insensitive, the above command would simply delete the
 map. This was considered to be a bad thing. Sufficiently bad that, until
 someone can come up with a 100%-reliable mechanism for determining whether
 or not the filesystem is case-sensitive (I'm not holding my breath), we
 always assume that the filesystem might be case-insensitive.

 If you want to change the case, you will have to do it in two steps, e.g.:

 {{{
 g.rename vect=Map1,map1.tmp
 g.rename vect=map1.tmp,map1
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/496#comment:1>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list