GithubHelp home page GithubHelp logo

default PAGER pager does not exist about mwic HOT 4 CLOSED

jayvdb avatar jayvdb commented on June 8, 2024
default PAGER pager does not exist

from mwic.

Comments (4)

jwilk avatar jwilk commented on June 8, 2024

FWIW, pager does exist on Debian and its derivatives:
https://www.debian.org/doc/debian-policy/ch-customized-programs.html#s11.4
(manpages.ubuntu.com and packages.debian.org are not aware of the alternatives mechanism, so they won't find it.)

You are right that pager is not very portable. We should fall back to more which is in POSIX.

I'll get it fixed soon.

from mwic.

jwilk avatar jwilk commented on June 8, 2024

I implemented more fall-back in 9303b14.

I don't like the idea of pure-Python pager, but if you feel strongly about it, feel free to open a separate issue.

from mwic.

jayvdb avatar jayvdb commented on June 8, 2024

No, I dont feel strongly about it. more should be fine.
I note that sensible-pager (in sensible-utils) is available for Fedora 23 where it is

#!/bin/sh

${PAGER:-pager} "$@"
ret="$?"
if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then
more "$@"
ret="$?"
    if [ "$ret" -eq 126 ] || [ "$ret" -eq 127 ]; then
        echo "Couldn't find a pager!" 1>&2
        echo "Set the \$PAGER environment variable to your desired pager." 1>&2
        exit 1
    fi
fi

I doubt it is in OSX, after a quick look on the web, and even less likely to be on other Unix. So skipping that and just using more seems appropriate.

from mwic.

jwilk avatar jwilk commented on June 8, 2024

I've just released 0.5.1, which includes aforementioned fix.

from mwic.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.