[PATCH] pwclient: honor PAGER for view

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Tue Mar 3 08:43:16 AEDT 2015


On 2 March 2015 at 22:34, Stephen Rothwell <sfr at canb.auug.org.au> wrote:
> Hi Bernhard,
>
> On Mon,  2 Mar 2015 16:18:34 +0100 Bernhard Reutner-Fischer <rep.dot.nop at gmail.com> wrote:
>>
>> Use the PAGER of the environment to view patches
>
> It would be nice if PAGER was not used when stdout is not a terminal so
> that piping the output works naturally.

IIRC that works fine for me with PAGER=less LESS=-IM pwclient view 1 2
3 > /tmp/foo (say).

http://git.busybox.net/busybox/tree/miscutils/less.c#n1647

I guess the big less should work fine too, the busybox more(1) does
the same FWIW.

thanks,


More information about the Patchwork mailing list