Imply -q when stderr is not a tty (#2884)

* Imply -q when stderr is not a tty
This commit is contained in:
binhdvo authored and GitHub committed 2021-12-07 16:56:19 -05:00
1 parent b6b4c9a3da
commit 38dfc4699e
2 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -1402,7 +1402,7 @@ int main(int argCount, const char* argv[])
/* No status message in pipe mode (stdin - stdout) */
hasStdout = outFileName && !strcmp(outFileName,stdoutmark);
if (hasStdout && (g_displayLevel==2)) g_displayLevel=1;
if ((hasStdout || !IS_CONSOLE(stderr)) && (g_displayLevel==2)) g_displayLevel=1;
/* IO Stream/File */
FIO_setHasStdoutOutput(fCtx, hasStdout);