Skip Menu |

This queue is for tickets about the Text-Autoformat CPAN distribution.

Report information
The Basics
Id: 4600
Status: new
Priority: 0/
Queue: Text-Autoformat

People
Owner: Nobody in particular
Requestors: tuxlover [...] mailinator.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.12
Fixed in: (no value)



Subject: error formatting several mv commands
Hi, Formatting something like mv /etc/rc3.d/S50networking /etc/rc3.d/S100networking mv /etc/rc5.d/S50networking /etc/rc5.d/S100networking mv /etc/rc3.d/S100networking /etc/rc3.d/S50networking mv /etc/rc5.d/S100networking /etc/rc5.d/S50networking doesn't work right, it becomes mv /etc/rc3.d/S50networking /etc/rc3.d/S100networking mvi /etc/rc5.d/S50networking /etc/rc5.d/S100networking mvii /etc/rc3.d/S100networking /etc/rc3.d/S50networking mviii /etc/rc5.d/S100networking /etc/rc5.d/S50networking regards, robert
Date: Wed, 10 Dec 2003 17:55:53 +1100
From: Damian Conway <damian [...] conway.org>
To: bug-Text-Autoformat [...] rt.cpan.org
Subject: Re: [cpan #4600] error formatting several mv commands
RT-Send-Cc:
Guest via RT wrote: Show quoted text
> This message about Text-Autoformat was sent to you by guest <> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=4600 > > > Hi, > Formatting something like > > mv /etc/rc3.d/S50networking /etc/rc3.d/S100networking > mv /etc/rc5.d/S50networking /etc/rc5.d/S100networking > mv /etc/rc3.d/S100networking /etc/rc3.d/S50networking > mv /etc/rc5.d/S100networking /etc/rc5.d/S50networking > > doesn't work right, it becomes > > mv /etc/rc3.d/S50networking /etc/rc3.d/S100networking > mvi /etc/rc5.d/S50networking /etc/rc5.d/S100networking > mvii /etc/rc3.d/S100networking /etc/rc3.d/S50networking > mviii /etc/rc5.d/S100networking /etc/rc5.d/S50networking
I blame Kernighan, Richie, et al. for numbering their command-line utilities with Roman numerals! ;-) Unfortunately I don't see any way of fixing this short of making autoformat as intelligent as the average Unix programmer. Of course, you could always use the "ignore" flag that was introduced in version 1.07 to ignore such lines. Damian