Comments (4)
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.
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.
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.
I've just released 0.5.1, which includes aforementioned fix.
from mwic.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mwic.