Your message dated Sun, 14 Feb 2016 13:53:46 +0100
with message-id <[email protected]>
and subject line Re: 7z: Error messages go to stdout
has caused the Debian Bug report #772952,
regarding 7z: Error messages go to stdout
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
772952: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772952
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: p7zip-full
Version: 9.04~dfsg.1-1
Severity: minor
X-Debbugs-Cc: [email protected]
7z prints error messages to standard output. This makes it impossible
to keep apart regular output and error messages, and violates user
expectations, if not applicable standards.
When you are running 7z as a subprocess, the intuition is to display
standard error (but not necessarily standard output) in case of an
error. But this displays nothing at all, and loses the error message
for the user.
(The following demo case depends on what I believe is undocumented
behavior: passwords with newlines in them are rejected with -tzip.)
debian$ 7z a -p'4$$w0rD
' -tzip /tmp/archive.zip /etc/motd >/dev/null
debian$ echo $?
2
debian$ ls -l /tmp/archive.zip
ls: cannot access /tmp/archive.zip: No such file or directory
debian$ 7z a -p'4$$w0rD
' -tzip /tmp/archive.zip /etc/motd 2>/dev/null
7-Zip 9.04 beta Copyright (c) 1999-2009 Igor Pavlov 2009-05-30
p7zip Version 9.04 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,1 CPU)
Scanning
Creating archive /tmp/archive.zip
System error:
E_INVALIDARG
This is tangentially related to #528200 -- whoever tackles one should
probably tackle the other at the same time.
--
If this were a real .signature, it would suck less. Well, maybe not.
--- End Message ---
--- Begin Message ---
Source: p7zip
Source-Version: 15.09+dfsg-1
[ Re-sending to correct address ]
On Fri, 12 Dec 2014 14:46:01 +0200 era eriksson <[email protected]> wrote:
>
> 7z prints error messages to standard output. This makes it impossible
> to keep apart regular output and error messages, and violates user
> expectations, if not applicable standards.
Fixed in 15.09+dfsg-1 which is currently in experimental.
Quoting the upstream changelog:
"- From Windows version of 7-zip 15.05 beta:
- Console version now uses stderr stream for error messages."
Regards,
Robert
--- End Message ---