UnxUtils
Last modified: April 27, 2007 - 22:40
UnxUtils is a collection of GNU utilities for Win32, including patch. Download UnxUtils.zip then extract to a suitable folder. Add the folder [folder]\usr\local\wbin\ to your Windows PATH variable (or invoke patch using [folder]\usr\local\wbin\patch).
You can then invoke patch on the command line (via Start » Run, cmd)
HOWTO: Apply patches contains information on the command line syntax.
Note: patch on Windows requires CRLF line-endings; see also Common problems.

UnxUtils and patch
To get it to work you may need to invoke patch in one of the following ways:
Although the \unxutils\usr\local\wbin\ folder is in my PATH, patch appears to do nothing unless invoked by one of these methods. This is because there is another patch.exe in C:\WINDOWS. It appears to have been left there by a Trend Micro AV scanner (probably their "online" scan). I get the feeling I'm not alone with this problem http://sourceforge.net/tracker/index.php?func=detail&aid=1239280&group_i....
This is not really a UnxUtils problem to be fair and could arise with other packages that include patch.exe.
Other problems I've had with UnxUtils, for the record:
- the z option does not work in tar
- grep -r does not find all occurrences of search string (not sure if this is a problem specifically with the -r option or with grep generally for larger files)
Time to try Cygwin methinks!
gpk
----
www.alexoria.co.uk