[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /usr/share/doc/ files and gzip/xz/no compression



I demand that James Vega may or may not have written...

> On Tue, Aug 16, 2011 at 01:06:34PM +1000, Russell Coker wrote:
>> On Tue, 16 Aug 2011, Chris Knadle <Chris.Knadle@coredump.us> wrote:
[snip; *zless]
>>> Right now these functions are spread across 4 different binaries, each of
>>> which is in a different package.
>> Probably the best thing to do would be to just incorporate the
>> functionality in the less package.

> You mean like lesspipe(1)?  Seems like it might need to be updated to
> handle *.xz, but other than that looks like it fits the bill.

The following in ~/.lessfilter adds that support (as a workaround until
lesspipe has it):

#! /bin/sh
case "$1" in
  *.xz)
    xzcat "$1"
    ;;
  *)
    exit 1
    ;;
esac
exit 0

-- 
| Darren Salt  | linux or ds at  | nr. Ashington, |  _  ASCII ribbon
| using Debian | youmustbejoking | Northumberland | ( ) campaign against
| GNU/Linux    | ,demon,co,uk    |                |  X  HTML e-mail
                                                    / \ www.asciiribbon.org
I'd like to, but I'm being deported.


Reply to: