Hi! On Fri, 2019-06-28 at 02:21:18 +0200, Guillem Jover wrote: > On Wed, 2019-06-26 at 08:24:10 +0200, Harald Dunkel wrote: > > Package: dpkg > > Version: 1.19.7
> > Obviously > > > > export DPKG_PAGER="" > > > > doesn't work as expected (overriding $PAGER, as promised by the man page). > > Hmm, I guess I could change it to treat "" the same as "cat", even > though that'd be a behavior change now, so meh. I've been reluctant to change the behavior for this. But then I recalled that POSIX has defined semantics for PAGER, where it being unset or empty makes it default to "more" or a system specific pager. https://pubs.opengroup.org/onlinepubs/9799919799/utilities/man.html#tag_20_77_08 So treating DPKG_PAGER when empty differently to when it is unset, would be more confusing. So I've documented this locally in the man page to be included in my next push, and will not be changing the behavior. > > The workaround (export DPKG_PAGER=cat) might affect color mode (but I > > haven't > > seen any colors in dpkg's output, anyway). > > It does not affect the color support, because the value "cat" is > special-cased, and will disable the pager. I see this is not really > properly documented, will fix that. I've now documented this locally as well. Thanks, Guillem

