Unix diff command under Window.

Thomas Heller theller at python.net
Thu Aug 25 21:11:59 CEST 2005


Trent Mick <trentm at ActiveState.com> writes:

> [Neil Hodgson wrote]
>> Thomas Heller:
>> 
>> > Yes.  There's a script in your Python distribution:
>> > Tools/scripts/diff.py
>> > 
>> > See also the docs for the 'difflib' standard library module.
>> 
>>     Is the opposite code, a Python equivalent to 'patch' available? I 
>> have endless trouble receiving patch files that assume one of Windows or 
>> Unix (in terms of path names and line end characters) which then fail to 
>> apply on the other platform. I would like to have a version I could hack on.
>
> So would I! I also have problems with the available patch.exe binaries
> hanging or crashing occassionally on Windows.

The only slightly related thing that I know of is the 'Perl Power Tools'
Unix reconstruction project.  Seems they have a 'patch' command
implemented in perl:

http://ppt.perl.org/commands/patch/

Thomas



More information about the Python-list mailing list