Consider this: $ svn -q --non-interactive update /blah-blah $ echo $? 0
No output even to stderr, no indication of a failure at all. Subversion doesn't always used interactively, hence --non-interactive switch. If you made a mistake in a script it will be unnoticed (well, this was my unpleasant surprise) Vadym On May 12, 2010, at 9:28 AM, Andy Levy wrote: > On Wed, May 12, 2010 at 09:23, Vadym Chepkov <vchep...@gmail.com> wrote: >> Hi, >> >> I think the exit code subversion returns isn't right, it should indicate an >> error >> >> $ svn --version >> svn, version 1.6.11 (r934486) >> >> >> $ svn update /blah-blah >> Skipped '/blah-blah' >> $ echo $? >> 0 >> >> $ svn update /etc >> Skipped '/etc' >> $ echo $? >> 0 > > Why? The command executed successfully and reported what it did. > Skipping something which is not a working copy isn't a program error; > attempting to update a something which is not a WC is a user error.