public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Pipelines and return codes
@ 2003-01-13  3:30 Rolf Campbell
  0 siblings, 0 replies; only message in thread
From: Rolf Campbell @ 2003-01-13  3:30 UTC (permalink / raw)
  To: cygwin

/home/rcampbell> (true | true) && echo true || echo false
true
/home/rcampbell> (true | false) && echo true || echo false
false
/home/rcampbell> (false | true) && echo true || echo false
true
/home/rcampbell> (false | false) && echo true || echo false
false

The third test above yields different results when run on Linux.  I'm
wondering if this was the desired result or not?  (This is not a new
problem, it's been around for at least a year of releases).  It makes
some makefiles not work as expected, specifically, the GCC manual
describes how to perform auto-dependency analysis like:

gcc ... | sed ...

But, if gcc fails, sed will still work, thus make will not consider it a
failure and will continue.

I know there are many ways to avoid this specific problem, already
implemented one.  Just wanted to let you guys know.


-Rolf Campbell
Software Designer
Tropic Networks

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-12 22:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-13  3:30 Pipelines and return codes Rolf Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).