Package: moreutils Version: 0.18 Severity: normal Tags: patch Hi there,
Vidir currently fails to list files and directories ending in one or more dots (see for example the output of "touch foo.; vidir .", where the file "foo." does not show up in the listing). Attached is a patch that hopefully fixes this in the right way. Cheers, Bram Senders -- System Information: Debian Release: 4.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: powerpc (ppc) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-1-powerpc Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages moreutils depends on: ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries ii perl 5.8.8-6.1 Larry Wall's Practical Extraction moreutils recommends no packages. -- no debconf information
--- vidir.orig 2006-11-11 13:07:13.000000000 +0100 +++ vidir 2006-11-11 13:09:04.000000000 +0100 @@ -96,7 +96,7 @@ my %item; my $c=0; foreach (@dir) { - next if /(.*\/)?\.$/ || /(.*\/)?\.\.$/; + next if /^(.*\/)?\.$/ || /^(.*\/)?\.\.$/; $item{++$c}=$_; print OUT "$c\t$_\n"; }