chun2 / theunarchiver

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

Feature request: make unar/lsar accept STDIN #755

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The commandline tools tar, gzip, bzip2, and xz will all let you 
decompress/unpack something piped in through STDIN, for instance like this:

xz -d foo.tar.xz -c | tar -xf - 

or

cat foo.gz | gzip -d -c > foo

(I might have gotten some small details wrong because I can't recall all the 
niceties off the top of my head, but you get the idea).

Experimentation reveals that neither unar nor lsar can do this.

It would be super-duper awesome if they could acquire this ability.  One 
example use case would be if one started with a GPG-encrypted file 
"foo.tar.gpg".  One might want to be able to do something like this:

gpg -d foo.tar.gpg | unar -

or, if needed,

gpg -d foo.tar.gpg | unar - > foo.tar.

Original issue reported on code.google.com by chd...@gmail.com on 11 Jul 2014 at 1:05

GoogleCodeExporter commented 8 years ago
Unlikely. Many archive formats require seeking, and you can't do that on stdio 
without first reading the entire input into a temporary file. That is possible, 
but seems a bit too annoying to do for now.

Original comment by paracel...@gmail.com on 11 Jul 2014 at 9:21