diff options
Diffstat (limited to 'src/fe_utils/print.c')
-rw-r--r-- | src/fe_utils/print.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fe_utils/print.c b/src/fe_utils/print.c index 1ec74f17907..5c5d285be5f 100644 --- a/src/fe_utils/print.c +++ b/src/fe_utils/print.c @@ -2874,6 +2874,12 @@ PageOutput(int lines, const printTableOpt *topt) pagerprog = getenv("PAGER"); if (!pagerprog) pagerprog = DEFAULT_PAGER; + else + { + /* if PAGER is empty or all-white-space, don't use pager */ + if (strspn(pagerprog, " \t\r\n") == strlen(pagerprog)) + return stdout; + } disable_sigpipe_trap(); pagerpipe = popen(pagerprog, "w"); if (pagerpipe) |