Package: p7zip-full Version: 9.04~dfsg.1-1 Severity: minor X-Debbugs-Cc: era+deb...@iki.fi
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. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org