Bug#262645: marked as forwarded (vim: wildcards work incorrectly with numbers in filename pattern)
Debian Bug Tracking System
owner@bugs.debian.org
Tue, 15 Mar 2005 13:34:38 -0800
Your message dated Tue, 15 Mar 2005 22:22:32 +0100
with message-id <20050315212232.GA19069@fistandantilus.takhisis.org>
has caused the Debian Bug report #262645,
regarding vim: wildcards work incorrectly with numbers in filename pattern
to be marked as having been forwarded to the upstream software
author(s) Bram Moolenaar <Bram@moolenaar.net>.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
---------------------------------------
Received: (at 262645-forwarded) by bugs.debian.org; 15 Mar 2005 21:23:20 +0000
>From zack@bononia.it Tue Mar 15 13:23:20 2005
Return-path: <zack@bononia.it>
Received: from ms001msg.fastwebnet.it [213.140.2.51]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DBJVY-0004Lp-00; Tue, 15 Mar 2005 13:23:20 -0800
Received: from fistandantilus.takhisis.org (37.10.140.106) by ms001msg.fastwebnet.it (7.2.052.3)
id 4235CA07000523CE; Tue, 15 Mar 2005 22:22:33 +0100
Received: by fistandantilus.takhisis.org (Postfix, from userid 3148)
id 9B59B3F4004; Tue, 15 Mar 2005 22:22:32 +0100 (CET)
Date: Tue, 15 Mar 2005 22:22:32 +0100
From: Stefano Zacchiroli <zack@debian.org>
To: Bram Moolenaar <Bram@moolenaar.net>
Cc: 262645-forwarded@bugs.debian.org, mkj@iki.fi
Subject: [vim bug] filename wildcard expansion get confused by numbers in pattern
Message-ID: <20050315212232.GA19069@fistandantilus.takhisis.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040907i
Delivered-To: 262645-forwarded@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
Yet another bug forwarded from the debian BTS (please don't hate me :)
It seems that numbers in shell like patterns confuses vim, example:
$ ls
1 1a 2 2a a aa b ba
executing ":arga 1*" and then ":ls" will add all the above files as
buffers, while only "1" and "1a" should.
Complete bug report from Markus Jarvinen (Cc-ed) follows:
Cheers.
> Package: vim
> Version: 1:6.3-013+2
> Severity: normal
>
> Wildcards don't work correctly with some filenames.
>
> Here's some test files:
>
> $ mkdir /tmp/test
> $ cd /tmp/test
> $ touch 1 1a 2 2a a aa b ba
>
> Correct behaviour:
>
> $ vi
> :arga a*
> :ls
> 1 %a "[No File]" line 1
> 2 "a" line 0
> 3 "aa" line 0
> :qa
>
> Incorrect behaviour:
>
> $ vi
> :arga 1*
> :ls
> 1 %a "[No File]" line 1
> 2 "1" line 0
> 3 "1a" line 0
> 4 "2" line 0
> 5 "2a" line 0
> 6 "a" line 0
> 7 "aa" line 0
> 8 "b" line 0
> 9 "ba" line 0
> :qa
>
> Numbers in the pattern seem to confuse vim.
--
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-