[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: Karl Fogel <kfogel_at_red-bean.com>
Date: Tue, 20 May 2008 14:25:22 -0400

Eric Gillespie <epg_at_pretzelnet.org> writes:
> 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.

Okay. Patch undergoing 'make check' right now.

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

Well, the way it gets set is complicated, but yes, in that instance it
was "broken" because I was following up to a users@ post but then
cross-posting my reply to dev@. It's fine in this reply, though.
Thanks for noticing.

-K

---------------------------------------------------------------------
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 20:25:41 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.