bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cvs diff and added files


From: Derek R. Price
Subject: Re: cvs diff and added files
Date: Thu, 08 Feb 2001 12:44:26 -0500

Ian Lance Taylor wrote:

> "Derek R. Price" <derek.price@openavenue.com> writes:
>
> > According to my patch man page, it appears CVS is relying on some POSIX
> > behavior which tells patch to read the filename on the 'Index:' line and not
> > the later 'diff', '---', and '+++' lines.  Unfortunately, my implementation
> > of patch appears to then ignore created files, though from the man page it
> > doesn't appear that it is supposed to.
>
> If you are using GNU patch, then I believe you need to set the
> environment variable POSIXLY_CORRECT to get it to honor the Index:
> lines.

That provides the same behavior that supplying --posix on the command line did.
The index lines are now honored, and most of the patches apply correctly, but
files are no longer created.

Derek

--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:dprice@openavenue.com     OpenAvenue ( http://OpenAvenue.com )
--
You want my advice?  Go back to Bulgaria.

                - Humphrey Bogart as Rick, _Casablanca_






reply via email to

[Prev in Thread] Current Thread [Next in Thread]