Skip to content

Commit

Permalink
Merge pull request #400 from mknos/grep-warnqq
Browse files Browse the repository at this point in the history
grep: trailing characters in error messages
  • Loading branch information
briandfoy authored Jan 4, 2024
2 parents 37478ea + 6537496 commit 2797769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/grep
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,13 @@ FILE: while (defined ($file = shift(@_))) {

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

}
if (!$opt->{r}) {
warn qq($Me: "$file" is a directory\n");
warn qq($Me: "$file" is a directory\n);
next FILE;
}
unless (opendir(DIR, $file)) {
Expand Down

0 comments on commit 2797769

Please sign in to comment.