matches "bar/foo.c" but not "baz/bar/foo.c"
"??*/*" matches "ab/foo" and "abc/foo"
but not "a/foo" or "a/b/foo"
This modified behaviour is equivalent to the pattern matching
style used by the shells of some of UnZip’s supported target OSs
(one example is Acorn RISC OS). This option may not be available
on systems where the Zip archive’s internal directory separator
character ‘/’ is allowed as regular character in native operating
system filenames. (Currently, UnZip uses the same pattern match‐
ing rules for both wildcard zipfile specifications and zip entry
selection patterns in most ports. For systems allowing ‘/’ as
regular filename character, the ‐W option would not work as ex‐
pected on a wildcard zipfile specification.)
-X [VMS, Unix, OS/2, NT, Tandem] restore owner/protection info (UICs
and ACL entries) under VMS, or user and group info (UID/GID) un‐
der Unix, or access control lists (ACLs) under certain network‐
enabled versions of OS/2 (Warp Server with IBM LAN Server/Re‐
quester 3.0 to 5.0; Warp Connect with IBM Peer 1.0), or security
ACLs under Windows NT. In most cases this will require special
system privileges, and doubling the option (-XX) under NT in‐
structs unzip to use privileges for extraction; but under Unix,
for example, a user who belongs to several groups can restore
files owned by any of those groups, as long as the user IDs match
his or her own. Note that ordinary file attributes are always
restored‐‐this option applies only to optional, extra ownership
info available on some operating systems. [NT’s access control
lists do not appear to be especially compatible with OS/2’s, so
no attempt is made at cross‐platform portability of access privi‐
leges. It is not clear under what conditions this would ever be
useful anyway.]
-Y [VMS] treat archived file name endings of ‘‘.nnn’’ (where ‘‘nnn’’
is a decimal number) as if they were VMS version numbers
(‘‘;nnn’’). (The default is to treat them as file types.) Exam‐
ple:
"a.b.3" ‐> "a.b;3".
-$ [MS‐DOS, OS/2, NT] restore the volume label if the extraction
medium is removable (e.g., a diskette). Doubling the option
(-$$) allows fixed media (hard disks) to be labelled as well. By
default, volume labels are ignored.
-/ extensions
[Acorn only] overrides the extension list supplied by Unzip$Ext
environment variable. During extraction, filename extensions that
match one of the items in this extension list are swapped in
front of the base name of the extracted file.
-: [all but Acorn, VM/CMS, MVS, Tandem] allows to extract archive
members into locations outside of the current ‘‘ extraction root
folder’’. For security reasons, unzip normally removes ‘‘parent
dir’’ path components (‘‘../’’) from the names of extracted file.
This safety feature (new for version 5.50) prevents unzip from
accidentally writing files to ‘‘sensitive’’ areas outside the ac‐
tive extraction folder tree head. The -: option lets unzip
switch back to its previous, more liberal behaviour, to allow ex‐
act extraction of (older) archives that used ‘‘../’’ components
to create multiple directory trees at the level of the current
extraction folder. This option does not