New patchfs script
Andrew V. Samoilov
sav at bcs.zp.ua
Wed Dec 11 14:42:35 UTC 2002
Hi, Adam!
Adam Byrtek 'alpha' wrote:
> On Mon, Dec 09, 2002 at 12:16:42PM -0500, Pavel Roskin wrote:
>
>>I hope to put your script on CVS today and I'm ready to make fixes myself,
>>but I just want to give you are chance to do it right.
>
>
> Updated version attached. It works in reasonable time, even with
> kernel patches. It supports file size and date parsing. All warnings
> fixed. I considered some 'run' virtual methods, but decided they are
> redundant. 'patch -p1' is quite simple to type in fact... and one can
> add it to mc menu if he wants.
>
I applied little patch for your patchfs to quote metacharacters in
filename before giving it to shell. Also I want to eliminate temporary
file in copyout() and teach patchfs to understand context diffs (diff -c).
Another good change should be to use +++ filename for newly created
files (--- /dev/null).
And it is reasonable to search and substitute perl in patchfs, a and
uzip scripts, but this is another story.
--
Regards,
Andrew V. Samoilov
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patchfs.patch
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20021211/5ad0be0b/attachment.ksh>
More information about the mc-devel
mailing list