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

Re: STDOUT and Hook Scripts

From: Ryan Schmidt <subversion-2010a_at_ryandesign.com>
Date: Wed, 10 Mar 2010 20:03:35 -0600

On Mar 10, 2010, at 18:35, David Weintraub wrote:

> On Wed, Mar 10, 2010 at 1:31 PM, Ted Stern wrote:
>> What about this basic shell manipulation?
>>
>> #!/bin/sh
>>
>> exec 1>&2 # combine stdout with stderr
>>
>> # do stuff that generates stdout
>>
>> if [ <condition> ] ; then
>> exit 1 # return non-zero exit every time there's stdout
>> fi
>
> I know that hooks don't return STDOUT to the user, but does
> Subversion's hooks eat STDOUT, or can I pass it on to the next
> program. That's what I want to know.

As far as I know, you should be able to pass STDOUT anywhere you want to, like you would in any other script. Have you tried it?
Received on 2010-03-11 03:04:15 CET

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

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