patchfs: Fixed leading ./ bug
Roland Illig
roland.illig at gmx.de
Sat Oct 23 13:01:37 UTC 2004
Leonard den Ottolander wrote:
> Hello Roland,
> On Fri, 2004-10-22 at 14:58, Roland Illig wrote:
>
>>+ $fname =~ s,/+,/,g;
> ? Can you just remove the plus sign?
Why do you want to replace every "/" with "/"?
>>+ $fname =~ s,/\.$,,;
> Why is this needed?
Because "dir/subdir/." and "dir/subdir" are handled the same in the rest
of mc.
>> $file=~s/^(PATCH-(CREATE|REMOVE)\/)?(.*)\.diff$/$3/;
>>+ $file = mc_canonicalize_path ($file);
>
> What happened to the ".diff$" part?
I don't know. That has not been me.
Roland
More information about the mc-devel
mailing list