[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn info not setting exit status.

From: Eric Gillespie <epg_at_pretzelnet.org>
Date: Tue, 20 May 2008 10:44:49 -0700

Karl Fogel <kfogel_at_red-bean.com> writes:

> We definitely should continue the loop even in case of error, so we try
> every target. But when we do exit, should it be a non-zero exit code if
> any target received an error? Currently, we exit with zero.

If svn didn't successfully complete every task I gave it, it
should not exit zero. Note that this may be my fault ;->; I
remember making some of these commands warn and continue many
years ago...

> There may be precedents for this sort of situation, and if there are,
> Subversion should follow them. But I don't know what they are. Does
> anyone else?

0 ~% ls notexist .zshrc
ls: notexist: No such file or directory
.zshrc
2 ~% ls .zshrc
.zshrc

The '2' in my prompt is the exit code from ls.

[Aside: Karl, your Mail-followup-to field is broken; it lists
only the users list.]

--
Eric Gillespie <*> epg_at_pretzelnet.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-05-20 19:45:22 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.