diff options
Diffstat (limited to 'vidir')
-rwxr-xr-x | vidir | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"; } |