sys-apps/less: lesspipe: minor improvements
authorMike Frysinger <vapier@gentoo.org>
Sun, 15 Sep 2019 07:46:01 +0000 (03:46 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sun, 15 Sep 2019 07:50:59 +0000 (03:50 -0400)
commit741f5ec1e6d6668a9e51d292cc5c1e34a4f905c2
tree979c383d4e870f097d8b212e24e4750f75294750
parentefb92a51c30ded73401e564c714c951772619485
sys-apps/less: lesspipe: minor improvements

* Add/update copyright/license headers.
* Test whether LESSDEBUG is set rather than its value
* Fix `stat` usage on pseudo paths (e.g. URIs) & names that start with -
* Add a .json print handler via python
* Process https:// URIs like http://
* Try elinks in addition to & before other CLI browsers
* Tweak quoting in a few places as shellcheck highlighted
* Check $# -eq 0 so we don't treat "" as missing arguments
* Don't run lesspipe twice when it fails & LESSDEBUG is enabled

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
sys-apps/less/files/lesspipe.sh