[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: first contribution: smart rename for the mv command
From: |
Stéphane Archer |
Subject: |
Re: first contribution: smart rename for the mv command |
Date: |
Sat, 24 Dec 2022 15:03:57 -0300 |
Hi Pádraig,
Thank you for your answer, I agree that --backup=numbered does something
similar but there is a few issues with this functionality in my opinion.
The first is that it doesn't preserve file extension so you end up with a
bunch of file.tar.bz2~1~ file where file~1~.tar.bz2 would make much more
sense in my opinion.
The second is just that ~ is a special character for most shells so an
underscore would make a safer file name. I imagine you know the `detox`
program to avoid issues with complex file names, the simpler, the better.
I hope this clarifies what I'm trying to do.
What do you think?
Mary Christmas!
Stéphane Archer
On Thu, Dec 22, 2022 at 4:15 PM Pádraig Brady <P@draigbrady.com> wrote:
> On 22/12/2022 15:59, Stéphane Archer wrote:
> > Dear Gnu Coreutils community,
> >
> > I would like to contribute to the project a feature I miss a lot in the
> > `mv` command.
> > I currently have a working patch but it's clearly not perfect. I would
> like
> > to have feedback on it and would like to know if you are willing to
> accept
> > this change.
> > Do you think it's possible?
> >
> > I usually use GitHub for code review so I'm not sure how things are
> working
> > here.
> > I tried to generate a patch I can send by email to you, I hope this will
> > help you understand what I'm trying to do.
> >
>
> Thanks for the patch,
> however this overlaps too much with existing --backup=numbered
> functionality.
> Can you explain why that doesn't suffice.
> Perhaps we might add another --backup=numbered-always mode for example,
> but there would need to be good justification for it.
>
> thanks,
> Pádraig
>
--
Best Regards,
Stephane Archer