summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--mshow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mshow.c b/mshow.c
index 6cfa455..cd8bbef 100644
--- a/mshow.c
+++ b/mshow.c
@@ -513,7 +513,7 @@ main(int argc, char *argv[])
 			if (f)
 				filters = blaze822(f);
 		}
-		if (argc == optind) {
+		if (argc == optind && isatty(0)) {
 			char *cur[] = { "." };
 			blaze822_loop(1, cur, show);
 		} else {