Re: [GRASS-dev] Return value from g.copy is one when --overwrite - bug or feature?

2015-11-09 Thread Huidae Cho
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

Re: [GRASS-dev] Return value from g.copy is one when --overwrite - bug or feature?

2015-11-09 Thread Glynn Clements
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

Re: [GRASS-dev] Return value from g.copy is one when --overwrite - bug or feature?

2015-11-09 Thread Rainer M Krug
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

Re: [GRASS-dev] Return value from g.copy is one when --overwrite - bug or feature?

2015-11-08 Thread Rainer M Krug
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

Re: [GRASS-dev] Return value from g.copy is one when --overwrite - bug or feature?

2015-11-08 Thread Markus Neteler
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 >>

[GRASS-dev] Return value from g.copy is one when --overwrite - bug or feature?

2015-11-06 Thread Rainer M Krug
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

Re: [GRASS-dev] Return value from g.copy is one when --overwrite - bug or feature?

2015-11-06 Thread Huidae Cho
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