GNU bug report logs -
#8159
file-name-sans-version fails for some git files
Previous Next
Reported by: Reuben Thomas <rrt <at> sc3d.org>
Date: Wed, 2 Mar 2011 22:32:02 UTC
Severity: normal
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
Full log
Message #41 received at 8159 <at> debbugs.gnu.org (full text, mbox):
On 3 March 2011 15:09, Andreas Schwab <schwab <at> linux-m68k.org> wrote:
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>> Anyway, your change is not limited to this particular situation, it is
>> more general. It will affect any file of that form, anywhere.
>
> file-name-version-regexp is already very general. But one problem is
> that by adding ~ it would match backups of backups.
To be precise, it would match non-numbered backups of non-numbered
backups of non-numbered backups, and non-numbered backups of numbered
backups: the current pattern requires either a single ~, or two tildes
with at least one other character between them.
To fix this would require specifying that an internal tilde is
preceded and followed by at least one character from the rest of the
character class [-[:alnum:]:#@^._] (or, if you just want to cope with
git notation, then preceded by one such character, and followed by a
digit), i.e. something like
\\(?:~\\|\\.~[-[:alnum:]:#@^._]+\\([-[:alnum:]:#@^._~]*[-[:alnum:]:#@^._]+\\)?~\\)
--
http://rrt.sc3d.org
This bug report was last modified 14 years and 84 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.