reading from stdin and at the same time writing to stdout does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
p7zip (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Binary package hint: p7zip
= expected behaviour =
7z(a) should be able to be used in pipe filters and thus to read from stdin (-si) and write to stdout (-so). This works as long as only one of these is used (e.g. 7z at begin or end of pipe). If you want both to work together (e.g. in the middle of the pipe) 7z denies execution.
man 7z (same for 7za) documents the option as follows:
-so Write data to StdOut (eg: % echo foo | 7z a dummy -tgzip -si -so > /dev/null)
= experienced behaviour =
However if you do this (same again for 7za):
$ echo foo | 7z -a dummy -tgzip -si -so > testfile
Return value is 7 (bad command line) and testfile has the following content (not compressed or something):
Error:
Incorrect command line
(It's furthermore noteworthy that an error message is written to stdout while I want to have my actual data there - what's going to happen if 7z encounters a bug while compressing - do I get my data stream corrupted by a message then? But that's another issue)
= external bug tracking =
Bug exists since 7 years in the project's bug tracker: http://
= resolution =
Maybe the feature could be marked as missing in the bug section of the man page. The misleading example should vanish.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: p7zip-full 9.04~dfsg.1-1
ProcVersionSign
Uname: Linux 2.6.32-25-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Sat Oct 30 15:14:40 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
PATH=(custom, user)
LANG=sv_SE.utf8
SHELL=/bin/bash
SourcePackage: p7zip
Changed in p7zip (Ubuntu): | |
importance: | Undecided → Medium |
(the bug exists in the project's bug tracker since 3 years, since the year 2007, sorry for confusing the numbers, but does not change the situation)