Skip to content

Commit 750e1b5

Browse files
authored
what: print filenames unconditionally
* Print name once per file argument, including files containing zero matches * Empty filename '' is generally invalid and would fail earlier in open()
1 parent f2cb441 commit 750e1b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/what

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ sub printWhat
4444
my $file_name = shift;
4545
my $stop_flag = shift;
4646
my $line;
47-
print "$file_name:\n" if $file_name ne "";
47+
print "$file_name:\n";
4848
while (defined($line = <$file_handle>))
4949
{
5050
next unless $line =~ m/\@\(#\)/;

0 commit comments

Comments
 (0)