From: Andrew Morton Date: Tue, 03 Jul 2007 21:03:37 GMT Subject: Re: Re: being nice to patch(1) Message-ID: <200707032103.l63L3bm18209@f7.net> In-Reply-To: <200707031803.15633.agruen@suse.de> On Tue, 3 Jul 2007 18:03:15 +0200 Andreas Gruenbacher wrote: > On Tuesday 03 July 2007 17:49, Andrew Morton wrote: > > I guess one could try `patch -p1' and if that failed, `patch -p1 -u'. > > Hmm, I'll think about that, thanks. > > > But the problem is that patch will get stuck in interactive mode prompting > > for a filename. I've never actually worked how to make patch(1) just fail > > rather than going interactive, not that I've tried terribly hard. Any > > hints there? > > Patch -f will turn off those questions. > darnit, both `-f' and `-t' work. Sigh. I blame the manpage: too long ;) Incidentally, the offending patch (http://userweb.kernel.org/~akpm/git-scsi-misc.patch) sends patch(1) into an infinite loop with `patch -p1 -f' and `patch -p1 -t'. Presumably it will do the same when that patch is offered to quilt...