MAN page from Old RedHat 7.X unzip-5.42-1.i386.rpm
UNZIP
Section: Misc. Reference Manual Pages (1L)
Updated: 14 January 2001 (v5.42)
Index NAME
unzip - list, test and extract compressed files in a ZIP archive
SYNOPSIS
unzip [
-Z] [
-cflptuvz[
abjnoqsCLMVX$/]]
file[
.zip] [
file(s) ...][
-x xfile(s) ...] [
-d exdir]
DESCRIPTION
unzip will list, test, or extract files from a ZIP archive, commonlyfound on MS-DOS systems. The default behavior (with no options) is to extractinto the current directory (and subdirectories below it) all files from thespecified ZIP archive. A companion program,
zip(1L), creates ZIParchives; both programs are compatible with archives created by PKWARE's
PKZIP and
PKUNZIP for MS-DOS, but in many cases the programoptions or default behaviors differ.
ARGUMENTS
- file[.zip]
- Path of the ZIP archive(s). If the file specification is a wildcard,each matching file is processed in an order determined by the operatingsystem (or file system). Only the filename can be a wildcard; the pathitself cannot. Wildcard expressions are similar to Unix egrep(1)(regular) expressions and may contain:
- *
- matches a sequence of 0 or more characters
- ?
- matches exactly 1 character
- [...]
- matches any single character found inside the brackets; ranges are specifiedby a beginning character, a hyphen, and an ending character. If an exclamationpoint or a caret (`!' or `^') follows the left bracket, then the range ofcharacters within the brackets is complemented (that is, anything exceptthe characters inside the brackets is considered a match).
- (Be sure to quote any character that might otherwise be interpreted ormodified by the operating system, particularly under Unix and VMS.) If nomatches are found, the specification is assumed to be a literal filename;and if that also fails, the suffix .zip is appended. Note thatself-extracting ZIP files are supported, as with any other ZIP archive;just specify the .exe suffix (if any) explicitly.
- [file(s)]
- An optional list of archive members to be processed, separated by spaces.(VMS versions compiled with VMSCLI defined must delimit files with commasinstead. See -v in OPTIONS below.)Regular expressions (wildcards) may be used to match multiple members; seeabove. Again, be sure to quote expressions that would otherwise be expandedor modified by the operating system.
- [-x xfile(s)]
- An optional list of archive members to be excluded from processing.Since wildcard characters match directory separators (`/'), this optionmay be used to exclude any files that are in subdirectories. Forexample, ``unzip foo *.[ch] -x */*'' would extract all C source filesin the main directory, but none in any subdirectories. Without the -xoption, all C source files in all directories within the zipfile would beextracted.
- [-d exdir]
- An optional directory to which to extract files. By default, all filesand subdirectories are recreated in the current directory; the -doption allows extraction in an arbitrary directory (always assuming onehas permission to write to the directory). This option need not appearat the end of the command line; it is also accepted before the zipfilespecification (with the normal options), immediately after the zipfilespecification, or between the file(s) and the -x option.The option and directory may be concatenated without any white spacebetween them, but note that this may cause normal shell behavior to besuppressed. In particular, ``-d ~'' (tilde) is expanded by UnixC shells into the name of the user's home directory, but ``-d~''is treated as a literal subdirectory ``~'' of the current directory.
OPTIONS
Note that, in order to support obsolescent hardware,
unzip's usagescreen is limited to 22 or 23 lines and should therefore be consideredonly a reminder of the basic
unzip syntax rather than an exhaustivelist of all possible flags. The exhaustive list follows:
- -Z
- zipinfo(1L) mode. If the first option on the command line is -Z,the remaining options are taken to be zipinfo(1L) options. See theappropriate manual page for a description of these options.
- -A
- [OS/2, Unix DLL] print extended help for the DLL's programming interface (API).
- -c
- extract files to stdout/screen (``CRT''). This option is similar to the-p option except that the name of each file is printed as it isextracted, the -a option is allowed, and ASCII-EBCDIC conversionis automatically performed if appropriate. This option is not listed inthe unzip usage screen.
- -f
- freshen existing files, i.e., extract only those files thatalready exist on disk and that are newer than the disk copies. Bydefault unzip queries before overwriting, but the -o optionmay be used to suppress the queries. Note that under many operating systems,the TZ (timezone) environment variable must be set correctly in order for-f and -u to work properly (under Unix the variable is usuallyset automatically). The reasons for this are somewhat subtle buthave to do with the differences between DOS-format file times (always localtime) and Unix-format times (always in GMT/UTC) and the necessity to comparethe two. A typical TZ value is ``PST8PDT'' (US Pacific time with automaticadjustment for Daylight Savings Time or ``summer time'').
- -l
- list archive files (short format). The names, uncompressed file sizes andmodification dates and times of the specified files are printed, alongwith totals for all files specified. If UnZip was compiled with OS2_EASdefined, the -l option also lists columns for the sizes of storedOS/2 extended attributes (EAs) and OS/2 access control lists (ACLs). Inaddition, the zipfile comment and individual file comments (if any) aredisplayed. If a file was archived from a single-case file system (forexample, the old MS-DOS FAT file system) and the -L option was given,the filename is converted to lowercase and is prefixed with a caret (^).
- -p
- extract files to pipe (stdout). Nothing but the file data is sent tostdout, and the files are always extracted in binary format, just as theyare stored (no conversions).
- -t
- test archive files. This option extracts each specified file in memoryand compares the CRC (cyclic redundancy check, an enhanced checksum) ofthe expanded file with the original file's stored CRC value.
- -T
- [most OSes] set the timestamp on the archive(s) to that of the newest filein each one. This corresponds to zip's -go option except thatit can be used on wildcard zipfiles (e.g., ``unzip -T \*.zip'') andis much faster.
- -u
- update existing files and create new ones if needed. This option performsthe same function as the -f option, extracting (with query) filesthat are newer than those with the same name on disk, and in addition itextracts those files that do not already exist on disk. See -fabove for information on setting the timezone properly.
- -v
- be verbose or print diagnostic version info. This option has evolved andnow behaves as both an option and a modifier. As an option it has twopurposes: when a zipfile is specified with no other options, -v listsarchive files verbosely, adding to the basic -l info the compressionmethod, compressed size, compression ratio and 32-bit CRC. When no zipfileis specified (that is, the complete command is simply ``unzip -v''), adiagnostic screen is printed. In addition to the normal header with releasedate and version, unzip lists the home Info-ZIP ftp site and where tofind a list of other ftp and non-ftp sites; the target operating system forwhich it was compiled, as well as (possibly) the hardware on which it wascompiled, the compiler and version used, and the compilation date; any specialcompilation options that might affect the program's operation (see alsoDECRYPTION below); and any options stored in environment variablesthat might do the same (see ENVIRONMENT OPTIONS below). As amodifier it works in conjunction with other options (e.g., -t) toproduce more verbose or debugging output; this is not yet fully implementedbut will be in future releases.
- -z
- display only the archive comment.
MODIFIERS
- -a
- convert text files. Ordinarily all files are extracted exactly as theyare stored (as ``binary'' files). The -a option causes files identifiedby zip as text files (those with the `t' label in zipinfolistings, rather than `b') to be automatically extracted as such, convertingline endings, end-of-file characters and the character set itself as necessary.(For example, Unix files use line feeds (LFs) for end-of-line (EOL) andhave no end-of-file (EOF) marker; Macintoshes use carriage returns (CRs)for EOLs; and most PC operating systems use CR+LF for EOLs and control-Z forEOF. In addition, IBM mainframes and the Michigan Terminal System use EBCDICrather than the more common ASCII character set, and NT supports Unicode.)Note that zip's identification of text files is by no means perfect; some``text'' files may actually be binary and vice versa. unzip thereforeprints ``[text]'' or ``[binary]'' as a visual check for each fileit extracts when using the -a option. The -aa option forcesall files to be extracted as text, regardless of the supposed file type.
- -b
- [general] treat all files as binary (no text conversions). This is a shortcutfor ---a.
- -b
- [Tandem] force the creation files with filecode type 180 ('C') whenextracting Zip entries marked as "text". (On Tandem, -a is enabledby default, see above).
- -b
- [VMS] auto-convert binary files (see -a above) to fixed-length,512-byte record format. Doubling the option (-bb) forces all filesto be extracted in this format.
- -B
- [Unix only, and only if compiled with UNIXBACKUP defined] save a backup copyof each overwritten file with a tilde appended (e.g., the old copy of``foo'' is renamed to ``foo~''). This is similar to the defaultbehavior of emacs(1) in many locations.
- -C
- match filenames case-insensitively. unzip's philosophy is ``you getwhat you ask for'' (this is also responsible for the -L/-Uchange; see the relevant options below). Because some file systems are fullycase-sensitive (notably those under the Unix operating system) and becauseboth ZIP archives and unzip itself are portable across platforms,unzip's default behavior is to match both wildcard and literal filenamescase-sensitively. That is, specifying ``makefile'' on the command linewill only match ``makefile'' in the archive, not ``Makefile'' or``MAKEFILE'' (and similarly for wildcard specifications). Since this doesnot correspond to the behavior of many other operating/file systems (forexample, OS/2 HPFS, which preserves mixed case but is not sensitive to it),the -C option may be used to force all filename matches to becase-insensitive. In the example above, all three files would then match``makefile'' (or ``make*'', or similar). The -C optionaffects files in both the normal file list and the excluded-file list (xlist).
- -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
- [Unix only, and only if compiled with ACORN_FTYPE_NFS defined] translatefiletype information from ACORN RISC OS extra field blocks into aNFS filetype extension and append it to the names of the extracted files.(When the stored filename appears to already have an appended NFS filetypeextension, it is replaced by the info from the extra field.)
- -i
- [MacOS only] ignore filenames stored in MacOS extra fields. Instead, themost compatible filename stored in the generic part of the entry's headeris used.
- -j
- junk paths. The archive's directory structure is not recreated; all filesare deposited in the extraction directory (by default, the current one).
- -J
- [BeOS only] junk file attributes. The file's BeOS file attributes are notrestored, just the file's data.
- -J
- [MacOS only] ignore MacOS extra fields. All Macintosh specific infois skipped. Data-fork and resource-fork are restored as separate files.
- -L
- convert to lowercase any filename originating on an uppercase-only operatingsystem or file system. (This was unzip's default behavior in releasesprior to 5.11; the new default behavior is identical to the old behavior withthe -U option, which is now obsolete and will be removed in a futurerelease.) Depending on the archiver, files archived under single-casefile systems (VMS, old MS-DOS FAT, etc.) may be stored as all-uppercase names;this can be ugly or inconvenient when extracting to a case-preservingfile system such as OS/2 HPFS or a case-sensitive one such as underUnix. By default unzip lists and extracts such filenames exactly asthey're stored (excepting truncation, conversion of unsupported characters,etc.); this option causes the names of all files from certain systems to beconverted to lowercase. The -LL option forces conversion of everyfilename to lowercase, regardless of the originating file system.
- -M
- pipe all output through an internal pager similar to the Unixmore(1)command. At the end of a screenful of output, unzip pauses with a``--More--'' prompt; the next screenful may be viewed by pressing theEnter (Return) key or the space bar. unzip can be terminated bypressing the ``q'' key and, on some systems, the Enter/Return key. UnlikeUnix more(1), there is no forward-searching or editing capability.Also, unzip doesn't notice if long lines wrap at the edge of the screen,effectively resulting in the printing of two or more lines and the likelihoodthat some text will scroll off the top of the screen before being viewed.On some systems the number of available lines on the screen is not detected,in which case unzip assumes the height is 24 lines.
- -n
- never overwrite existing files. If a file already exists, skip the extractionof that file without prompting. By default unzip queries beforeextracting any file that already exists; the user may choose to overwriteonly the current file, overwrite all files, skip extraction of the currentfile, skip extraction of all existing files, or rename the current file.
- -N
- [Amiga] extract file comments as Amiga filenotes. File comments are createdwith the -c option of zip(1L), or with the -N option of the Amiga portof zip(1L), which stores filenotes as comments.
- -o
- overwrite existing files without prompting. This is a dangerous option, souse it with care. (It is often used with -f, however, and is the onlyway to overwrite directory EAs under OS/2.)
- -P password
- use password to decrypt encrypted zipfile entries (if any). THIS ISINSECURE! Many multi-user operating systems provide ways for any user tosee the current command line of any other user; even on stand-alone systemsthere is always the threat of over-the-shoulder peeking. Storing the plaintextpassword as part of a command line in an automated script is even worse.Whenever possible, use the non-echoing, interactive prompt to enter passwords.(And where security is truly important, use strong encryption such as PrettyGood Privacy instead of the relatively weak encryption provided by standardzipfile utilities.)
- -q
- perform operations quietly (-qq = even quieter). Ordinarily unzipprints the names of the files it's extracting or testing, the extractionmethods, any file or zipfile comments that may be stored in the archive,and possibly a summary when finished with each archive. The -q[q]options suppress the printing of some or all of these messages.
- -s
- [OS/2, NT, MS-DOS] convert spaces in filenames to underscores. Since all PCoperating systems allow spaces in filenames, unzip by default extractsfilenames with spaces intact (e.g., ``EA DATA. SF''). This can beawkward, however, since MS-DOS in particular does not gracefully supportspaces in filenames. Conversion of spaces to underscores can eliminate theawkwardness in some cases.
- -U
- (obsolete; to be removed in a future release) leave filenames uppercase ifcreated under MS-DOS, VMS, etc. See -L above.
- -V
- retain (VMS) file version numbers. VMS files can be stored with a versionnumber, in the format file.ext;##. By default the ``;##'' versionnumbers are stripped, but this option allows them to be retained. (Onfile systems that limit filenames to particularly short lengths, the versionnumbers may be truncated or stripped regardless of this option.)
- -X
- [VMS, Unix, OS/2, NT] restore owner/protection info (UICs) under VMS, or userand group info (UID/GID) under Unix, or access control lists (ACLs) undercertain network-enabled versions of OS/2 (Warp Server with IBM LANServer/Requester 3.0 to 5.0; Warp Connect with IBM Peer 1.0), or security ACLsunder Windows NT. In most cases this will require special system privileges,and doubling the option (-XX) under NT instructs unzip to useprivileges for extraction; but under Unix, for example, a user who belongs toseveral groups can restore files owned by any of those groups, as long as theuser IDs match his or her own. Note that ordinary file attributes are alwaysrestored--this option applies only to optional, extra ownership info availableon some operating systems. [NT's access control lists do not appear to beespecially compatible with OS/2's, so no attempt is made at cross-platformportability of access privileges. It is not clear under what conditions thiswould ever be useful anyway.]
- -$
- [MS-DOS, OS/2, NT] restore the volume label if the extraction medium isremovable (e.g., a diskette). Doubling the option (-$$) allows fixedmedia (hard disks) to be labelled as well. By default, volume labels areignored.
- -/ extensions
- [Acorn only] overrides the extension list supplied by Unzip$Ext environmentvariable. During extraction, filename extensions that match one of the itemsin this extension list are swapped in front of the base name of the extractedfile.
ENVIRONMENT OPTIONS
unzip's default behavior may be modified via options placed inan environment variable. This can be done with any option, but itis probably most useful with the
-a,
-L,
-C,
-q,
-o, or
-n modifiers: make
unzip auto-convert textfiles by default, make it convert filenames from uppercase systems tolowercase, make it match names case-insensitively, make it quieter,or make it always overwrite or never overwrite files as it extractsthem. For example, to make
unzip act as quietly as possible, onlyreporting errors, one would use one of the following commands:
Environment options are, in effect, considered to be just like any othercommand-line options, except that they are effectively the first optionson the command line. To override an environment option, one may use the``minus operator'' to remove it. For instance, to override one of thequiet-flags in the example above, use the command
The first hyphen is the normalswitch character, and the second is a minus sign, acting on the q option.Thus the effect here is to cancel one quantum of quietness. To cancelboth quiet flags, two (or more) minuses may be used:
(the two are equivalent). This may seem awkwardor confusing, but it is reasonably intuitive: just ignore the firsthyphen and go from there. It is also consistent with the behavior ofUnix nice(1).
As suggested by the examples above, the default variable names are UNZIP_OPTSfor VMS (where the symbol used to install unzip as a foreign commandwould otherwise be confused with the environment variable), and UNZIPfor all other operating systems. For compatibility with zip(1L),UNZIPOPT is also accepted (don't ask). If both UNZIP and UNZIPOPTare defined, however, UNZIP takes precedence. unzip's diagnosticoption (-v with no zipfile name) can be used to check the valuesof all four possible unzip and zipinfo environment variables.
The timezone variable (TZ) should be set according to the local timezonein order for the -f and -u to operate correctly. See thedescription of -f above for details. This variable may also benecessary in order for timestamps on extracted files to be set correctly.Under Windows 95/NT unzip should know the correct timezone even ifTZ is unset, assuming the timezone is correctly set in the Control Panel.
DECRYPTION
Encrypted archives are fully supported by Info-ZIP software, but due toUnited States export restrictions, de-/encryption support might be disabledin your compiled binary. However, since spring 2000, US export restrictionshave been liberated, and our source archives do now include full crypt code.In case you need binary distributions with crypt support enabled, see thefile ``WHERE'' in any Info-ZIP source or binary distribution for locationsboth inside and outside the US.
Some compiled versions of unzip may not support decryption.To check a version for crypt support, either attempt to test or extractan encrypted archive, or else check unzip's diagnosticscreen (see the -v option above) for ``[decryption]'' as oneof the special compilation options.
As noted above, the -P option may be used to supply a password onthe command line, but at a cost in security. The preferred decryptionmethod is simply to extract normally; if a zipfile member is encrypted,unzip will prompt for the password without echoing what is typed.unzip continues to use the same password as long as it appears to bevalid, by testing a 12-byte header on each file. The correct password willalways check out against the header, but there is a 1-in-256 chance that anincorrect password will as well. (This is a security feature of the PKWAREzipfile format; it helps prevent brute-force attacks that might otherwisegain a large speed advantage by testing only the header.) In the case thatan incorrect password is given but it passes the header test anyway, eitheran incorrect CRC will be generated for the extracted data or else unzipwill fail during the extraction because the ``decrypted'' bytes do notconstitute a valid compressed data stream.
If the first password fails the header check on some file, unzip willprompt for another password, and so on until all files are extracted. Ifa password is not known, entering a null password (that is, just a carriagereturn or ``Enter'') is taken as a signal to skip all further prompting.Only unencrypted files in the archive(s) will thereafter be extracted. (Infact, that's not quite true; older versions of zip(1L) andzipcloak(1L) allowed null passwords, so unzip checks each encryptedfile to see if the null password works. This may result in ``false positives''and extraction errors, as noted above.)
Archives encrypted with 8-bit passwords (for example, passwords with accentedEuropean characters) may not be portable across systems and/or otherarchivers. This problem stems from the use of multiple encoding methods forsuch characters, including Latin-1 (ISO 8859-1) and OEM code page 850. DOSPKZIP 2.04g uses the OEM code page; Windows PKZIP 2.50 usesLatin-1 (and is therefore incompatible with DOS PKZIP); Info-ZIP usesthe OEM code page on DOS, OS/2 and Win3.x ports but Latin-1 everywhereelse; and Nico Mak's WinZip 6.x does not allow 8-bit passwords at all.UnZip 5.3 attempts to use the default character set first (e.g.,Latin-1), followed by the alternate one (e.g., OEM code page) to testpasswords. On EBCDIC systems, if both of these fail, EBCDIC encoding willbe tested as a last resort. (Since there are no known archivers that encryptusing EBCDIC encoding, EBCDIC is not tested on non-EBCDIC systems.) ISOcharacter encodings other than Latin-1 are not supported.
EXAMPLES
To use
unzip to extract all members of the archive
letters.zipinto the current directory and subdirectories below it, creating anysubdirectories as necessary:
To extract all members of letters.zip into the current directory only:
To test letters.zip, printing only a summary message indicatingwhether the archive is OK or not:
To test all zipfiles in the current directory, printing only thesummaries:
(The backslash before the asterisk is only required if the shell expandswildcards, as in Unix; double quotes could have been used instead, as inthe source examples below.) To extract to standard output all members ofletters.zip whose names end in .tex, auto-converting to thelocal end-of-line convention and piping the output into more(1):
To extract the binary file paper1.dvi to standard output and pipe itto a printing program:
To extract all FORTRAN and C source files--*.f, *.c, *.h, and Makefile--intothe /tmp directory:
(the double quotes are necessary only in Unix and only if globbing is turnedon). To extract all FORTRAN and C source files, regardless of case (e.g.,both *.c and *.C, and any makefile, Makefile, MAKEFILE or similar):
To extract any such files but convert any uppercase MS-DOS or VMS names tolowercase and convert the line-endings of all of the files to the localstandard (without respect to any files that might be marked ``binary''):
To extract only newer versions of the files already in the currentdirectory, without querying (NOTE: be careful of unzipping in one timezone azipfile created in another--ZIP archives other than those created by Zip 2.1or later contain no timezone information, and a ``newer'' file from an easterntimezone may, in fact, be older):
To extract newer versions of the files already in the current directory andto create any files not already there (same caveat as previous example):
To display a diagnostic screen showing which unzip and zipinfooptions are stored in environment variables, whether decryption support wascompiled in, the compiler with which unzip was compiled, etc.:
In the last five examples, assume that UNZIP or UNZIP_OPTS is set to -q.To do a singly quiet listing:
To do a doubly quiet listing:
(Note that the ``.zip'' is generally not necessary.) To do a standardlisting:
or
or
TIPS
The current maintainer, being a lazy sort, finds it very useful to definea pair of aliases: tt for ``unzip -tq'' and ii for``unzip -Z'' (or ``zipinfo''). One may then simply type``tt zipfile'' to test an archive, something that is worth making ahabit of doing. With luck
unzip will report ``No errors detectedin compressed data of zipfile.zip,'' after which one may breathe a sighof relief.
The maintainer also finds it useful to set the UNZIP environment variableto ``-aL'' and is tempted to add ``-C'' as well. His ZIPINFOvariable is set to ``-z''.
DIAGNOSTICS
The exit status (or error level) approximates the exit codes defined by PKWAREand takes on the following values, except under VMS:
- 0
- normal; no errors or warnings detected.
- 1
- one or more warning errors were encountered, but processing completedsuccessfully anyway. This includes zipfiles where one or more fileswas skipped due to unsupported compression method or encryption with anunknown password.
- 2
- a generic error in the zipfile format was detected. Processing may havecompleted successfully anyway; some broken zipfiles created by otherarchivers have simple work-arounds.
- 3
- a severe error in the zipfile format was detected. Processing probablyfailed immediately.
- 4
- unzip was unable to allocate memory for one or more buffers duringprogram initialization.
- 5
- unzip was unable to allocate memory or unable to obtain a tty to readthe decryption password(s).
- 6
- unzip was unable to allocate memory during decompression to disk.
- 7
- unzip was unable to allocate memory during in-memory decompression.
- 8
- [currently not used]
- 9
- the specified zipfiles were not found.
- 10
- invalid options were specified on the command line.
- 11
- no matching files were found.
- 50
- the disk is (or was) full during extraction.
- 51
- the end of the ZIP archive was encountered prematurely.
- 80
- the user aborted unzip prematurely with control-C (or similar)
- 81
- testing or extraction of one or more files failed due to unsupportedcompression methods or unsupported decryption.
- 82
- no files were found due to bad decryption password(s). (If even one file issuccessfully processed, however, the exit status is 1.)
VMS interprets standard Unix (or PC) return values as other, scarier-lookingthings, so unzip instead maps them into VMS-style status codes. Thecurrent mapping is as follows: 1 (success) for normal exit, 0x7fff0001for warning errors, and (0x7fff000? + 16*normal_unzip_exit_status) for allother errors, where the `?' is 2 (error) for unzip values 2, 9-11 and80-82, and 4 (fatal error) for the remaining ones (3-8, 50, 51). In addition,there is a compilation option to expand upon this behavior: definingRETURN_CODES results in a human-readable explanation of what the errorstatus means.
BUGS
Multi-part archives are not yet supported, except in conjunction with
zip. (All parts must be concatenated together in order, and then``zip -F'' must be performed on the concatenated archive in orderto ``fix'' it.) This will definitely be corrected in the next major release.
Archives read from standard input are not yet supported, except withfunzip (and then only the first member of the archive can be extracted).
Archives encrypted with 8-bit passwords (e.g., passwords with accentedEuropean characters) may not be portable across systems and/or otherarchivers. See the discussion in DECRYPTION above.
unzip's -M (``more'') option is overly simplistic in its handlingof screen output; as noted above, it fails to detect the wrapping of long linesand may thereby cause lines at the top of the screen to be scrolled off beforebeing read. unzip should detect and treat each occurrence of line-wrapas one additional line printed. This requires knowledge of the screen's widthas well as its height. In addition, unzip should detect the true screengeometry on all systems.
Dates, times and permissions of stored directories are not restored exceptunder Unix.
[MS-DOS] When extracting or testing files from an archive on a defectivefloppy diskette, if the ``Fail'' option is chosen from DOS's ``Abort, Retry,Fail?'' message, older versions of unzip may hang the system, requiringa reboot. This problem appears to be fixed, but control-C (or control-Break)can still be used to terminate unzip.
Under DEC Ultrix, unzip would sometimes fail on long zipfiles (bad CRC,not always reproducible). This was apparently due either to a hardware bug(cache memory) or an operating system bug (improper handling of page faults?).Since Ultrix has been abandoned in favor of Digital Unix (OSF/1), this may notbe an issue anymore.
[Unix] Unix special files such as FIFO buffers (named pipes), block devicesand character devices are not restored even if they are somehow representedin the zipfile, nor are hard-linked files relinked. Basically the only filetypes restored by unzip are regular files, directories and symbolic(soft) links.
[OS/2] Extended attributes for existing directories are only updated if the-o (``overwrite all'') option is given. This is a limitation of theoperating system; because directories only have a creation time associatedwith them, unzip has no way to determine whether the stored attributesare newer or older than those on disk. In practice this may mean a two-passapproach is required: first unpack the archive normally (with or withoutfreshening/updating existing files), then overwrite just the directory entries(e.g., ``unzip -o foo */'').
[VMS] When extracting to another directory, only the [.foo] syntax isaccepted for the -d option; the simple Unix foo syntax issilently ignored (as is the less common VMS foo.dir syntax).
[VMS] When the file being extracted already exists, unzip's query onlyallows skipping, overwriting or renaming; there should additionally be achoice for creating a new version of the file. In fact, the ``overwrite''choice does create a new version; the old version is not overwritten ordeleted.
SEE ALSO
funzip(1L),
zip(1L),
zipcloak(1L),
zipgrep(1L),
zipinfo(1L),
zipnote(1L),
zipsplit(1L)
URL
The Info-ZIP home page is currently at
http://www.info-zip.org/pub/infozip/or
ftp://ftp.info-zip.org/pub/infozip/ .
AUTHORS
The primary Info-ZIP authors (current semi-active members of the Zip-Bugsworkgroup) are: Greg ``Cave Newt'' Roelofs (UnZip); Onno van der Linden (Zip);Jean-loup Gailly (compression); Mark Adler (decompression, fUnZip); ChristianSpieler (UnZip maintance coordination, VMS, MS-DOS, Windows 95, NT,shared code, general Zip and UnZip integration and optimization);Mike White (Windows GUI, Windows DLLs); Kai Uwe Rommel (OS/2);Paul Kienitz (Amiga, Windows 95); Chris Herborth (BeOS, QNX, Atari);Jonathan Hudson (SMS/QDOS); Sergio Monesi (Acorn RISC OS); HaraldDenker (Atari, MVS); John Bush (Solaris, Amiga); Hunter Goatley (VMS); SteveSalisbury (Windows 95, NT); Steve Miller (Windows CE GUI), Johnny Lee (MS-DOS,Windows 95, NT); and Dave Smith (Tandem NSK).The author of the original unzip code upon which Info-ZIP's was basedis Samuel H. Smith; Carl Mascott did the first Unix port; and David P.Kirschbaum organized and led Info-ZIP in its early days with Keith Petersenhosting the original mailing list at WSMR-SimTel20. The full list ofcontributors to UnZip has grown quite large; please refer to the CONTRIBSfile in the UnZip source distribution for a relatively complete version.
VERSIONS
- v1.2 15 Mar 89
- Samuel H. Smith
- v2.0 9 Sep 89
- Samuel H. Smith
- v2.x fall 1989
- many Usenet contributors
- v3.0 1 May 90
- Info-ZIP (DPK, consolidator)
- v3.1 15 Aug 90
- Info-ZIP (DPK, consolidator)
- v4.0 1 Dec 90
- Info-ZIP (GRR, maintainer)
- v4.1 12 May 91
- Info-ZIP
- v4.2 20 Mar 92
- Info-ZIP (Zip-Bugs subgroup, GRR)
- v5.0 21 Aug 92
- Info-ZIP (Zip-Bugs subgroup, GRR)
- v5.01 15 Jan 93
- Info-ZIP (Zip-Bugs subgroup, GRR)
- v5.1 7 Feb 94
- Info-ZIP (Zip-Bugs subgroup, GRR)
- v5.11 2 Aug 94
- Info-ZIP (Zip-Bugs subgroup, GRR)
- v5.12 28 Aug 94
- Info-ZIP (Zip-Bugs subgroup, GRR)
- v5.2 30 Apr 96
- Info-ZIP (Zip-Bugs subgroup, GRR)
- v5.3 22 Apr 97
- Info-ZIP (Zip-Bugs subgroup, GRR)
- v5.31 31 May 97
- Info-ZIP (Zip-Bugs subgroup, GRR)
- v5.32 3 Nov 97
- Info-ZIP (Zip-Bugs subgroup, GRR)
- v5.4 28 Nov 98
- Info-ZIP (Zip-Bugs subgroup, SPC)
- v5.41 16 Apr 00
- Info-ZIP (Zip-Bugs subgroup, SPC)
- v5.42 14 Jan 01
- Info-ZIP (Zip-Bugs subgroup, SPC)
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- ARGUMENTS
- OPTIONS
- MODIFIERS
- ENVIRONMENT OPTIONS
- DECRYPTION
- EXAMPLES
- TIPS
- DIAGNOSTICS
- BUGS
- SEE ALSO
- URL
- AUTHORS
- VERSIONS
This document was created byman2html,using the manual pages.