Re: patchfs: Fixed leading ./ bug
- From: Roland Illig <roland illig gmx de>
- To: Leonard den Ottolander <leonard den ottolander nl>
- Cc: MC Devel <mc-devel gnome org>
- Subject: Re: patchfs: Fixed leading ./ bug
- Date: Sat, 23 Oct 2004 15:01:37 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]