Amrnasr / lz4

Automatically exported from code.google.com/p/lz4
0 stars 0 forks source link

lz4cat functionality is missing #118

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Some system utils/scripts expect cat/zcat/bzcat-like functionality and lz4 only 
provides it when switches are used.
Please add a mode that defaults to cat-like functionality

What version of the product are you using? On what operating system?
r110-1.fc20 (Fedora 20 build of r110)

Original issue reported on code.google.com by fry....@gmail.com on 4 Mar 2014 at 12:03

GoogleCodeExporter commented 8 years ago
Some time ago, someone suggested a patch which would "hardwire" this mechanism 
into the C source code, by detecting the name of the link used to access the 
program.
I found the suggestion "hackish-style" : wrong place, not the right 
responsibility within the right layer, and therefore prone to maintenance 
headache.

I would very much prefer that system create links, so that lz4cat means "lz4 
-c".
This seems the right place.

So it becomes a packaging issue, related to "make install".
I'm accepting patches to make this work.

Original comment by yann.col...@gmail.com on 6 Mar 2014 at 10:28

GoogleCodeExporter commented 8 years ago

Original comment by yann.col...@gmail.com on 20 Mar 2014 at 2:37

GoogleCodeExporter commented 8 years ago

Original comment by yann.col...@gmail.com on 20 Mar 2014 at 2:37

GoogleCodeExporter commented 8 years ago
OK, I've been looking around and couldn't find a proper system-link-only 
solution.

So I created the solution within release candidate r115, which installs an 
lz4cat link into /usr/bin directory, and with active support from the CLI 
program, translate it into lz4 -cd, as it is supposed to.

to get the new utility, use : 
sudo make install

on a POSX system.

Original comment by yann.col...@gmail.com on 20 Mar 2014 at 2:41

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed into r115

Original comment by yann.col...@gmail.com on 23 Mar 2014 at 11:17