Re: Bug#363250: general: Custom PAGER gives error on sid, but works on sarge
On 21 Apr 2006, Loïc Minier spake thusly:
> On Fri, Apr 21, 2006, Manoj Srivastava wrote:
>> Here is my solution for using vim + script as a pager; similar
>> mechanisms can be used to use plain vim as PAGER as well.
> Nice, I suggest filing a new bug against vim to propose this as a
> contrib script, or to ship it as "vim-pager" wrapper.
> #363250 is more about documenting the semantics of $PAGER (whether
> it can uses sh syntax, or whether it's a command with parameters
> separated with spaces), to be documented in man man, and/or policy.
Err, we should define how it behaves, not what is inside
it. As long as one can pipe things to $PAGER or use $PAGER on a file,
what it contains should not matter.
The safe bet would be for $PAGER to be a script or executable
which can handle reading from file or STDIN, like proper UNIX
To make life easier for people writing programs which deal
with $PAGER, and are using the POSIX exce* set of calls, one may
constrain $PAGER to "path [arg [arg ..]]", with no pipes or other
"'Tis not too late to seek a newer world." Alfred, Lord Tennyson
Manoj Srivastava <email@example.com> <http://www.debian.org/%7Esrivasta/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C