[Bug 1290891] Re: Ability to write compressed data to stdout
Thorsten Glaser
1290891 at bugs.launchpad.net
Thu Mar 13 16:59:40 UTC 2014
Sworddragon dixit:
>This is also not a bug report but a feature request. Is there a reason
>why this should not be implemented?
Yes: it breaks the interface and a sanity check that has been
in action for longer than *buntu exists.
>> You can also force the binary data to show up on yout tty: xz -c 1 | cat
>
>Could be tricky on a popen()-like function if you don't want to rely on
>the shell.
Ehm no: if you popen() it, the output is not a tty, so the check
is not triggered. It is *only* triggered if you directly connect
a terminal to the xz command's stdout.
bye,
//mirabilos
--
„Cool, /usr/share/doc/mksh/examples/uhr.gz ist ja ein Grund,
mksh auf jedem System zu installieren.“
-- XTaran auf der OpenRheinRuhr, ganz begeistert
(EN: “[…]uhr.gz is a reason to install mksh on every system.”)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to xz-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1290891
Title:
Ability to write compressed data to stdout
Status in “xz-utils” package in Ubuntu:
Invalid
Bug description:
I'm using Ubuntu 14.04 dev with xz-utils 5.1.1alpha+20120614-2ubuntu2
and xz-utils provides the option -c to write to stdout but
interestingly this doesn't work with compressed data:
sworddragon at ubuntu:~/tmp$ xz -c 1
xz: Compressed data cannot be written to a terminal
xz: Try `xz --help' for more information.
As compressed data is not uncommon for a compressing application maybe writing compressed data to stdout can be supported too.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xz-utils/+bug/1290891/+subscriptions
More information about the foundations-bugs
mailing list