Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
On Thu, 3 Mar 2005, Mark Rages wrote:
> I have reduced my problem to this:
>
> ( /bin/false | gzip > /dev/null ) || echo fail
>
> I want it to echo "fail" because /bin/false gives a nonzero exit code.
> But it doesn't. What am I missing?
Maybe I'm not understanding this. If you are gzipping from stdin, don't
you need to do it this way:
| gzip -c - >
Maybe that isn't your intention. I'm not sure how gzip is used in a path
when it isn't reading stdin and writing to stdout.
I don't quite understand 'false'. Where is the exit code detected? It
doesn't go to stderr or to stdout.
Mike
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members