summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/grep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/grep.c b/src/grep.c
index 1e5d0fa4..046f17f1 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -1298,6 +1298,8 @@ grep (int fd, struct stat const *st)
nul_zapper = eol;
skip_nuls = skip_empty_lines;
}
+ else if (execute != Pexecute)
+ textbin = TEXTBIN_TEXT;
}
for (;;)