summaryrefslogtreecommitdiff
path: root/vidir
diff options
context:
space:
mode:
authorjoeyh <joeyh>2006-11-12 03:03:46 +0000
committerjoeyh <joeyh>2006-11-12 03:03:46 +0000
commit0a72631e595507348b6a5518eb7b586b3a5c2bf6 (patch)
treef1a60c8d455805189107ccbbc565b948c96c9b75 /vidir
parenta7cc6680fb9f2ce1f4f785d09d23e1274c3972b9 (diff)
downloadmoreutils-0.19.tar.gz
releasing version 0.190.19
Diffstat (limited to 'vidir')
-rwxr-xr-xvidir2
1 files changed, 1 insertions, 1 deletions
diff --git a/vidir b/vidir
index f67f74d..d482746 100755
--- a/vidir
+++ b/vidir
@@ -96,7 +96,7 @@ open (OUT, ">".$tmp->filename) || die "$0: cannot write ".$tmp->filename.": $!\n
my %item;
my $c=0;
foreach (@dir) {
- next if /(.*\/)?\.$/ || /(.*\/)?\.\.$/;
+ next if /^(.*\/)?\.$/ || /^(.*\/)?\.\.$/;
$item{++$c}=$_;
print OUT "$c\t$_\n";
}