patterns.
unzip’s philosophy is ‘‘you get what you ask for’’ (this is also
responsible for the -L/-U change; see the relevant options be‐
low). Because some file systems are fully case‐sensitive (no‐
tably those under the Unix operating system) and because both ZIP
archives and unzip itself are portable across platforms, unzip’s
default behavior is to match both wildcard and literal filenames
case‐sensitively. That is, specifying ‘‘makefile’’ on the com‐
mand line will only match ‘‘makefile’’ in the archive, not
‘‘Makefile’’ or ‘‘MAKEFILE’’ (and similarly for wildcard specifi‐
cations). Since this does not correspond to the behavior of many
other operating/file systems (for example, OS/2 HPFS, which pre‐
serves mixed case but is not sensitive to it), the -C option may
be used to force all filename matches to be case‐insensitive. In
the example above, all three files would then match ‘‘makefile’’
(or ‘‘make*’’, or similar). The -C option affects file specs in
both the normal file list and the excluded‐file list (xlist).
Please note that the -C option does neither affect the search for
the zipfile(s) nor the matching of archive entries to existing
files on the extraction path. On a case‐sensitive file system,
unzip will never try to overwrite a file ‘‘FOO’’ when extracting
an entry ‘‘foo’’!
-D skip restoration of timestamps for extracted items. Normally,
unzip tries to restore all meta‐information for extracted items
that are supplied in the Zip archive (and do not require privi‐
leges or impose a security risk). By specifying -D, unzip is
told to suppress restoration of timestamps for directories ex‐
plicitly created from Zip archive entries. This option only ap‐
plies to ports that support setting timestamps for directories
(currently ATheOS, BeOS, MacOS, OS/2, Unix, VMS, Win32, for other
unzip ports, -D has no effect). The duplicated option -DD forces
suppression of timestamp restoration for all extracted entries
(files and directories). This option results in setting the
timestamps for all extracted entries to the current time.
On VMS, the default setting for this option is -D for consistency
with the behaviour of BACKUP: file timestamps are restored, time‐
stamps of extracted directories are left at the current time. To
enable restoration of directory timestamps, the negated option
-‐D should be specified. On VMS, the option -D disables time‐
stamp restoration for all extracted Zip archive items. (Here, a
single -D on the command line combines with the default -D to do
what an explicit -DD does on other systems.)
-E [MacOS only] display contents of MacOS extra field during restore
operation.
-F [Acorn only] suppress removal of NFS filetype extension from
stored filenames.
-F [non‐Acorn systems supporting long filenames with embedded com‐
mas, and only if compiled with ACORN_FTYPE_NFS defined] translate
filetype information from ACORN RISC OS extra field blocks into a
NFS filetype extension and append it to the names of the ex‐
tracted files. (When the stored filename appears to already have
an appended NFS filetype extension, it is replaced by the info
from the extra field.)
-i [MacOS only] ignore filenames stored