Package: unzip
Version: 6.0-21
Severity: normal

There are two kinds of shell utils. Some understand "--" and threat all 
arguments after it as non-options (this utils are good).
Some don't understand "--" and try to threat it as normal option or as normal 
operand (this utils are bad, but they exist).
"unzip" is neither. It accepts "--" and start to ignore (!) all options it find 
after "--". Instead of, say,
threating them as normal operands, i. e. file names. Such behavior is very 
strange and should be fixed.

Example:

$ unzip -- -v /tmp/a.zip
Archive:  /tmp/a.zip
[/tmp/a.zip] txt.txt password: 
 extracting: txt.txt

As you can see, "-v" is simply ignored. "unzip" didn't process it as file, nor 
as option.

-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages unzip depends on:
ii  libbz2-1.0  1.0.6-8.1
ii  libc6       2.24-11+deb9u1

unzip recommends no packages.

Versions of packages unzip suggests:
ii  zip  3.0-11+b1

-- no debconf information

Reply via email to