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

Re: "svn info" good return code on bad URL

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2005-10-12 18:56:09 CEST

On Wed, 2005-10-12 at 07:48 -0400, John Belmonte wrote:
> For example, if you want to capture the tool output with
> command substitution (e.g. FOO=`svn info $URL`), there is no way (that
> I've been able to find) to get the return code.

  sh-3.00$ foo=`ls blah`
  ls: blah: No such file or directory
  sh-3.00$ echo $?
  1

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 12 18:57:17 2005

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.