r66775 adds a warning for non-vector elements as well.
On Mon, Nov 9, 2015 at 6:20 AM, Glynn Clements
wrote:
>
> Markus Neteler wrote:
>
> > It should probably not silently fail.
> >
> > The code in question is in
> > lib/manage/do_copy.c
>
> M_do_copy() returns a
Markus Neteler wrote:
> It should probably not silently fail.
>
> The code in question is in
> lib/manage/do_copy.c
M_do_copy() returns a status. g.copy's main() checks that and uses it
to set the exit status, but it doesn't generate an error or warning if
the status is non-zero.
If
Markus Neteler writes:
> On Sun, Nov 8, 2015 at 11:22 AM, Rainer M Krug wrote:
>> Huidae Cho writes:
>>
>>> Rainer,
>>>
>>> I cannot seem to replicate your issue:
>>>
>>> G srorg6630/tmp ~> g.version
>>> GRASS 7.1.svn (2015)
>>>
>>> G
Huidae Cho writes:
> Rainer,
>
> I cannot seem to replicate your issue:
>
> G srorg6630/tmp ~> g.version
> GRASS 7.1.svn (2015)
>
> G srorg6630/tmp ~> g.list region
> tmp
> tmp.d.rast.edit.6753
> tmp1
>
> G srorg6630/tmp ~> g.copy region=tmp,tmp1 --overwrite
> Copy region
On Sun, Nov 8, 2015 at 11:22 AM, Rainer M Krug wrote:
> Huidae Cho writes:
>
>> Rainer,
>>
>> I cannot seem to replicate your issue:
>>
>> G srorg6630/tmp ~> g.version
>> GRASS 7.1.svn (2015)
>>
>> G srorg6630/tmp ~> g.list region
>> tmp
>>
When copying via g.copy and specifying --overwrite and the target object
already exists, the return value is 1 but no error message is returned:
,
| simASM:grassAnalysis> g.copy --overwrite region=region1,region2
| simASM:grassAnalysis> echo $?
| 1
| simASM:grassAnalysis> g.version
| GRASS
Rainer,
I cannot seem to replicate your issue:
G srorg6630/tmp ~> g.version
GRASS 7.1.svn (2015)
G srorg6630/tmp ~> g.list region
tmp
tmp.d.rast.edit.6753
tmp1
G srorg6630/tmp ~> g.copy region=tmp,tmp1 --overwrite
Copy region definition to current mapset as
G srorg6630/tmp ~> echo