Mon, Dec 6 2004
23:46:31
|
|
Request created by jidanni@jidanni.org
|
|
Return-Path |
<jidanni@jidanni.org>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
To |
grass-bugs@intevation.de
|
Subject |
g.copy exit value
|
From |
Dan Jacobson <jidanni@jidanni.org>
|
Date |
Tue, 07 Dec 2004 06:07:36 +0800
|
Message-ID |
<877jnvhyhj.fsf@jidanni.org>
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
X-Spam-Status |
No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
|
X-Spam-Level |
|
User does not use -o and gets
$ g.copy vect=largeA,largeC
ERROR: <largeC> already exists in mapset <jidanni>
However, $? is not set, so Makefiles etc. just roll on.
|
|
Tue, Dec 7 2004
10:34:06
|
|
Mail sent by paul-grass@stjohnspoint.co.uk
|
|
Return-Path |
<paul-grass@stjohnspoint.co.uk>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Date |
Tue, 7 Dec 2004 09:34:04 +0000 (GMT)
|
From |
Paul Kelly <paul-grass@stjohnspoint.co.uk>
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
grass5@grass.itc.it
|
Subject |
Re: [GRASS5] [bug #2795] (grass) g.copy exit value
|
In-Reply-To |
<20041206224631.56093102C0F@lists.intevation.de>
|
Message-ID |
<Pine.LNX.4.60.0412070931380.27343@agrippa.ukshells.co.uk>
|
References |
<20041206224631.56093102C0F@lists.intevation.de>
|
MIME-Version |
1.0
|
Content-Type |
TEXT/PLAIN; charset=US-ASCII; format=flowed
|
X-Spam-Status |
No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
|
X-Spam-Level |
|
On Mon, 6 Dec 2004, Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=2795
> -------------------------------------------------------------------------
>
> User does not use -o and gets
> $ g.copy vect=largeA,largeC
> ERROR: <largeC> already exists in mapset <jidanni>
> However, $? is not set, so Makefiles etc. just roll on.
I looked in the code (general/manage/cmd/copy.c) and it seems this
behaviour is intentional, presumably because you could be copying more
than one file (e.g. a raster and a vector) in one invocation of the
command and it will continue and try to copy the others without stopping
if there is an error in just one. I suppose it's debatable whether this is
useful.
|
|
Wed, Dec 7 2005
21:50:51
|
|
Mail sent by msieczka
|
|
as Paul said, it is debatable so I'll leave it open
ideally I guess there could be an universal flag to let following Grass
programs continue if errors occur in current program - as an aid in scripting
but I'm not really sure
in this case I'll make it a wish6
Maciek |
|
Wed, Dec 7 2005
21:52:02
|
|
Subject changed to g.copy exit value; let it roll on or stop with error? by msieczka
|
|
Wed, Dec 7 2005
21:52:09
|
|
Area changed to wish6 by msieczka
|
|