Skip Menu |

This queue is for tickets about the rename CPAN distribution.

Report information
The Basics
Id: 96868
Status: resolved
Priority: 0/
Queue: rename

People
Owner: pederst [...] cpan.org
Requestors: sergeev917 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 1.4
  • 1.6
  • 1.8
Fixed in: 1.9



Subject: rename misbehaves with files that have spaces in name
Date: Tue, 1 Jul 2014 23:40:22 +0400
To: bug-rename [...] rt.cpan.org
From: "Alexander E. Sergeev" <sergeev917 [...] gmail.com>
Hi, rename gets names truncated when backup option used and names contain spaces. Way to reproduce: $ touch 'a b d' 'a b d' $ rename -n -b -V numbered -v 's/ +/ /g' * backup: a b d -> a a b d -> a b d As can be seen backup name wasn't generated correctly. If spaces go away then everything works as expected: $ touch 'azzzbzzd' 'azbzd' $ perl-rename -n -b -V numbered -v 's/z+/z/g' * backup: azbzd -> azbzd.~1~ azzzbzzd -> azbzd For now I'm reader of perl, not writer -- so no patch here. But some looking around shows that problem in next lines: 167 ($old) = sort {($b=~/~(\d+)~$/)[0] <=> ($a=~/~(\d+)~$/)[0]} <$_.~*~>; 168 $old =~ s/~(\d+)~$/'~'.($1+1).'~'/e; -- Best regards, Alexander E. Sergeev.
On Tue Jul 01 15:40:34 2014, sergeev917@gmail.com wrote: Show quoted text
> Hi, > rename gets names truncated when backup option used and names contain > spaces.
Have located the bug (glob splits on space), and will upload a fix soon.
Update should be available on CPAN
Subject: Re: [rt.cpan.org #96868] rename misbehaves with files that have spaces in name
Date: Fri, 4 Jul 2014 21:12:19 +0400
To: bug-rename [...] rt.cpan.org
From: "Alexander E. Sergeev" <sergeev917 [...] gmail.com>
On Fri, Jul 4, 2014 at 5:56 PM, Peder Stray via RT <bug-rename@rt.cpan.org> wrote: Show quoted text
> Update should be available on CPAN
Not sure that it's right place to report, but currently I'm receiving 503 (and 504 sometimes) on http://search.cpan.org/dist/rename/ -- Best regards, Alexander E. Sergeev.
On Fri Jul 04 13:12:28 2014, sergeev917@gmail.com wrote: Show quoted text
> On Fri, Jul 4, 2014 at 5:56 PM, Peder Stray via RT > <bug-rename@rt.cpan.org> wrote:
> > Update should be available on CPAN
> > Not sure that it's right place to report, but currently I'm receiving > 503 (and 504 sometimes) on http://search.cpan.org/dist/rename/
No, not much I can do about that...