mshow: check isatty for default behavior

This commit is contained in:
Christian Neukirchen 2016-07-20 19:23:42 +02:00
parent 0a8f79d057
commit 8672f495c3

View File

@ -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 {