On Sunday 12 October 2003 18:38, Shlomi Fish wrote:
> (make | echo) || echo hello
>
> make: *** No targets specified and no makefile found. Stop.
> I want that if one of the (first) components of the pipeline exits with an
> error code, I'll know about it somehow. How?
an erronouse exit code (actually, just "not true") does not break the pipe.
how about
(make || echo "oops" >&2 ) | cat-or-something
--
Oded
::..
'I have been told that "Introduction to Objectivist Epistemology" was required
reading at the Xerox PARC lab where OOP was invented, but this may be merely
an urban legend.'
-- Bryce Wilcox
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]