On Wed, Mar 10, 2010 at 1:31 PM, Ted Stern <dodecath...@gmail.com> 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.

What you recommend would send STDOUT to the user by sending STDOUT to
STDERR and purposefully failing the script. That's not what I want.

What I want to do is have a script that builds a list of notification
and then passes that along to another program to actually do the
notifications. This way, I can allow the user to choose the method of
sending notifications.

However, I'm taking a slightly different task by simply having
multiple notification subroutines in my script and allowing the user
to select the one they want.

-- 
David Weintraub
qazw...@gmail.com

Reply via email to