Commit 51b2c08
committed
Tighten usage of PSQL_WATCH_PAGER.
Don't use PSQL_WATCH_PAGER when stdin/stdout are not a terminal.
This corresponds to the restrictions on when other commands will
use [PSQL_]PAGER. There isn't a lot of sense in trying to use a
pager in non-interactive cases, and doing so allows an environment
setting to break our tests.
Also, ignore PSQL_WATCH_PAGER if it is set but empty or all-blank,
for the same reasons we ignore such settings of [PSQL_]PAGER (see
commit 18f8f78).
No documentation change is really needed, since there is nothing
suggesting that these constraints on [PSQL_]PAGER didn't already
apply to PSQL_WATCH_PAGER too. But I rearranged the text
a little to make it read more naturally (IMHO anyway).
Per report from Pavel Stehule. Back-patch to v15 where
PSQL_WATCH_PAGER was introduced.
Discussion: https://postgr.es/m/CAFj8pRDTwFzmEWdA-gdAcUh0ZnxUioSfTMre71WyB_wNJy-8gw@mail.gmail.com1 parent e32701b commit 51b2c08
2 files changed
+26
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3120 | 3120 | | |
3121 | 3121 | | |
3122 | 3122 | | |
3123 | | - | |
3124 | | - | |
| 3123 | + | |
| 3124 | + | |
| 3125 | + | |
| 3126 | + | |
| 3127 | + | |
| 3128 | + | |
| 3129 | + | |
| 3130 | + | |
| 3131 | + | |
| 3132 | + | |
| 3133 | + | |
| 3134 | + | |
| 3135 | + | |
| 3136 | + | |
| 3137 | + | |
3125 | 3138 | | |
3126 | 3139 | | |
3127 | 3140 | | |
| |||
3135 | 3148 | | |
3136 | 3149 | | |
3137 | 3150 | | |
3138 | | - | |
3139 | | - | |
3140 | | - | |
3141 | | - | |
3142 | | - | |
3143 | | - | |
3144 | | - | |
3145 | | - | |
3146 | | - | |
3147 | | - | |
3148 | | - | |
3149 | | - | |
3150 | 3151 | | |
3151 | 3152 | | |
3152 | 3153 | | |
| |||
4898 | 4899 | | |
4899 | 4900 | | |
4900 | 4901 | | |
4901 | | - | |
| 4902 | + | |
4902 | 4903 | | |
4903 | 4904 | | |
4904 | 4905 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5197 | 5197 | | |
5198 | 5198 | | |
5199 | 5199 | | |
5200 | | - | |
5201 | | - | |
5202 | | - | |
| 5200 | + | |
| 5201 | + | |
| 5202 | + | |
| 5203 | + | |
| 5204 | + | |
5203 | 5205 | | |
5204 | 5206 | | |
5205 | 5207 | | |
| 5208 | + | |
| 5209 | + | |
| 5210 | + | |
5206 | 5211 | | |
5207 | | - | |
| 5212 | + | |
| 5213 | + | |
5208 | 5214 | | |
5209 | 5215 | | |
5210 | 5216 | | |
| |||
0 commit comments