www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/13/05:48:19

Date: Thu, 13 Nov 1997 05:47:41 -0500 (EST)
From: Jude Dashiell <dashiell AT clark DOT net>
To: djgpp AT delorie DOT com
Subject: patch unexpected action
Message-ID: <Pine.GSO.3.96.971113053449.5085A-100000@clark.net>
MIME-Version: 1.0

Okay I'm going to make this as clear as possible the  first time through.
The files in question were:
c:\commo\commo.set which contains changes I wanted carried over
to c:\commo\beta\commo.set.
One line in particular in c:\commo\commo.set I especially needed carried
over was:
*  sfi=yes ...
That line should have replaced:
* sfi=no ...
the default setting in c:\commo\beta\commo.set.
I run the commands:
diff -u c:\commo\commo.set c:\commo\beta\commo.set >c:\commo\commo3.dif
<cr>
patch -i commo3.dif <cr>

The result was that
* sfi=no ...
was then found in both files.

Perhaps patch <commo3.dif <cr>
would have worked differently.
The djgpp environment variables were all set before I used diff or patch.
I wrote a batch file to handle that detail for me.

Fortunately for me, I had files in c:\commo\safe before I
tried any of this experimentation which I used to at least restore
previous
file states.



Jude <dashiell AT clark DOT net>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019