Patch failures using crosstool

Daniel Kegel
Mon Jun 21 17:19:00 GMT 2004

Dave wrote:
>>yes.  The greps wouldn't be needed if patch were better about
>>returning nonzero status on failed patches.
> patch -p1 -f --dry-run
> should exit 0 if applied successfully even with fuzz...else exit 1
> I haven't done too much checking to see how reliable it is though...

I think -f is the problem.  It means both "don't ask me anything"
and "never fail".  What I need instead is a flag that just means
"don't ask me any questions, but do exit with nonzero status if you
can't apply a patch".
- Dan

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list