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

Re: Mild bug?

From: Scott Lamb <slamb_at_slamb.org>
Date: 2002-07-04 00:31:55 CEST

Josef Wolf wrote:
> Don't fix if it ain't broken! Please consider something like:
>
> $ svn diff | ssh remote.host '(cd /some/dir; patch -p1)'
>
> or
>
> $ svn diff | mail -s "Here is your patch" some@one.com
>
> or many similar cases.

That wouldn't change. In a pipeline, the shell uses the return value of
the last command. So in your example, if ssh or mail fail, the whole
command fails. The return value of svn is ignored.

     $ true; echo $?
     0
     $ false; echo $?
     1
     $ true | false; echo $?
     1
     $ false | true; echo $?
     0

--
Scott Lamb
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jul 4 00:32:28 2002

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.