Skip to content

Commit 504caa9

Browse files
committed
Make filename reporting look the same
1 parent d370f46 commit 504caa9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/grep

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,13 @@ FILE: while (defined ($file = shift(@_))) {
277277

278278
if (-d $file) {
279279
if (-l $file && @ARGV != 1) {
280-
warn "$Me: \"$file\" is a symlink to a directory\n"
280+
warn qq($Me: "$file" is a symlink to a directory\n" )
281281
if $opt->{T};
282282
next FILE;
283283

284284
}
285285
if (!$opt->{r}) {
286-
warn "$Me: \"$file\" is a directory\n";
286+
warn qq($Me: "$file" is a directory\n");
287287
next FILE;
288288
}
289289
unless (opendir(DIR, $file)) {
@@ -317,7 +317,7 @@ FILE: while (defined ($file = shift(@_))) {
317317
else {
318318
$name = $file;
319319
unless (-e $file) {
320-
warn qq($Me: file "$file" does not exist\n) unless $opt->{'q'};
320+
warn qq($Me: "$file" does not exist\n) unless $opt->{'q'};
321321
$Errors++;
322322
next FILE;
323323
}

0 commit comments

Comments
 (0)