On Mon, Jun 25, 2012 at 4:41 AM, Gerhard Roth wrote:
...
> This is nasty if some modification broke the compilation of a particular
> source file. It cannot be compiled, but mkdep(1) exits with zero and
> 'make depend' completes without error. Since the source couldn't be
> compiled, the resulting
Hi,
the exit status of a shell pipeline is the exit status of the last
command in the pipeline. Since mkdep(1) pipes the output of ${CC} into
sed(1), the following check of '$?' checks the exit status of sed(1)
and not the of of cc(1).
This is nasty if some modification broke the compilation of