#496: g.rename vect=Map1,map1 doesn't work
----------------------+-----------------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: Vector | Version: 6.4.0 RCs
Keywords: g.rename | Platform: Linux
Cpu: x86-32 |
----------------------+-----------------------------------------------------
Hi,
{{{
g.rename vect=Map1,map1
}}}
is a no-op. The map is not renamed.
in the above example there was no attached DB. not sure what happens if
there is (ie partial rename->breakage?).
perhaps due to some MS-Windows accommodation which has gone too far?
I've been using case sensitive names for years to indicate type of map /
protection from typos. Losing the ability to manage them properly or
having all treated as lowercase() would stink.
#496: g.rename vect=Map1,map1 doesn't work
---------------------+------------------------------------------------------
Reporter: hamish | Owner: grass-dev@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.: