Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

exit value of intermediate program in pipe



I have a function foo:

foo () {
	/bin/blah | grep -v "foo"
}

I would like this function to exit with the exit value from the
/bin/blah process, but it exits with the exit value from grep instead.

Is there any way to do this?

Steve



Messages sorted by: Reverse Date, Date, Thread, Author