Home » Personal collection » Acorn hard disk » unzip_tools » !ZipEE » Resources/MANUAL

Resources/MANUAL

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn hard disk » unzip_tools » !ZipEE
Filename: Resources/MANUAL
Read OK:
File size: 8A10 bytes
Load address: 0000
Exec address: 0000
File contents
ZIP(1L)							  ZIP(1L)

NAME
       zip,  zipcloak,	zipnote,  zipsplit - package and compress
       (archive) files

SYNOPSIS
       zip [-AcdDeEfFghjklLmoqrRSTuvVwXyz@$]  [-b path]	 [-n suf-
       fixes]  [-t mmddyyyy]  [-tt mmddyyyy]  [	 zipfile  [ file1
       file2 ...]] [-xi list]

       zipcloak [-dhL] [-b path] zipfile

       zipnote [-hwL] [-b path] zipfile

       zipsplit [-hiLpst] [-n size] [-b path] zipfile

DESCRIPTION
       zip is a compression and file packaging utility for  Unix,
       VMS,  MSDOS, OS/2, Windows NT, Minix, Atari and Macintosh,
       Amiga and Acorn RISC OS.

       It is analogous to a  combination  of  the  UNIX	 commands
       tar(1)  and compress(1) and is compatible with PKZIP (Phil
       Katz's ZIP for MSDOS systems).

       A companion program  (unzip(1L)),  unpacks  zip	archives.
       The zip and unzip(1L) programs can work with archives pro-
       duced by PKZIP,	and  PKZIP  and	 PKUNZIP  can  work  with
       archives	 produced  by zip.  zip version 2.2 is compatible
       with PKZIP 2.04.	 Note that PKUNZIP  1.10  cannot  extract
       files  produced	by  PKZIP  2.04	 or zip 2.2. You must use
       PKUNZIP 2.04g  or  unzip	 5.0p1	(or  later  versions)  to
       extract them.

       For a brief help on zip and unzip, run each without speci-
       fying any parameters on the command line.

       The program is useful for packaging a  set  of  files  for
       distribution;  for  archiving  files;  and for saving disk
       space by temporarily compressing unused files or	 directo-
       ries.

       The  zip	 program puts one or more compressed files into a
       single zip archive, along with information about the files
       (name,  path, date, time of last modification, protection,
       and check  information  to  verify  file	 integrity).   An
       entire  directory  structure  can  be  packed  into  a zip
       archive with a single command.  Compression ratios of  2:1
       to 3:1 are common for text files.  zip has one compression
       method (deflation) and can also store files  without  com-
       pression.  zip automatically chooses the better of the two
       for each file to be compressed.

       When given the name of an existing zip archive,	zip  will
       replace	identically  named  entries in the zip archive or

Info-ZIP	       22 June 1997 (v2.2)			1

ZIP(1L)							  ZIP(1L)

       add entries for new names.  For example, if foo.zip exists
       and  contains  foo/file1	 and foo/file2, and the directory
       foo contains the files foo/file1 and foo/file3, then:

	      zip -r foo foo

       will replace foo/file1 in foo.zip  and  add  foo/file3  to
       foo.zip.	   After   this,   foo.zip   contains  foo/file1,
       foo/file2, and foo/file3, with  foo/file2  unchanged  from
       before.

       If the file list is specified as -@, zip takes the list of
       input files from standard input.	 Under UNIX, this  option
       can  be	used  to  powerful effect in conjunction with the
       find(1) command.	 For example, to archive all the C source
       files in the current directory and its subdirectories:

	      find . -name "*.[ch]" -print | zip source -@

       (note  that  the	 pattern must be quoted to keep the shell
       from expanding it).  zip will also accept  a  single  dash
       ("-")  as  the  zip file name, in which case it will write
       the zip file to standard output, allowing the output to be
       piped to another program. For example:

	      zip -r - . | dd of=/dev/nrst0 obs=16k

       would  write  the  zip  output directly to a tape with the
       specified block size for the purpose  of	 backing  up  the
       current directory.

       zip also accepts a single dash ("-") as the name of a file
       to be compressed, in which case it will read the file from
       standard	 input,	 allowing  zip to take input from another
       program. For example:

	      tar cf - . | zip backup -

       would compress the output of the tar command for the  pur-
       pose  of	 backing up the current directory. This generally
       produces better	compression  than  the	previous  example
       using  the  -r  option,	because zip can take advantage of
       redundancy between files. The backup can be restored using
       the command

	      unzip -p backup | tar xf -

       When  no zip file name is given and stdout is not a termi-
       nal, zip acts as a filter, compressing standard	input  to
       standard output.	 For example,

	      tar cf - . | zip | dd of=/dev/nrst0 obs=16k

       is equivalent to

Info-ZIP	       22 June 1997 (v2.2)			2

ZIP(1L)							  ZIP(1L)

	      tar cf - . | zip - - | dd of=/dev/nrst0 obs=16k

       zip  archives created in this manner can be extracted with
       the program funzip which is provided in the unzip package,
       or  by  gunzip  which is provided in the gzip package. For
       example:

       dd if=/dev/nrst0	 ibs=16k | funzip | tar xvf -

       When changing an existing zip archive, zip  will	 write	a
       temporary file with the new contents, and only replace the
       old one when the process of creating the new  version  has
       been completed without error.

       If  the name of the zip archive does not contain an exten-
       sion, the extension .zip is added.  If  the  name  already
       contains	 an extension other than .zip the existing exten-
       sion is kept unchanged.

OPTIONS
       -A     Adjust self-extracting executable archive.  A self-
	      extracting   executable	archive	  is  created  by
	      prepending the SFX stub to an existing archive. The
	      -A  option  tells	 zip  to adjust the entry offsets
	      stored in the archive to	take  into  account  this
	      "preamble" data.

       Note: self-extracting archives for the Amiga are a special
       case.  At present, only the Amiga port of Zip  is  capable
       of adjusting or updating these without corrupting them. -J
       can be used to remove the SFX stub if other  updates  need
       to be made.

       -b path
	      Use  the	specified  path	 for  the  temporary  zip
	      archive. For example:

		     zip -b /tmp stuff *

	      will put the temporary zip archive in the directory
	      /tmp,  copying over stuff.zip to the current direc-
	      tory when done. This option  is  only  useful  when
	      updating	an  existing archive, and the file system
	      containing this old archive does	not  have  enough
	      space to hold both old and new archives at the same
	      time.

       -c     Add one-line comments for each file.   File  opera-
	      tions  (adding,  updating)  are done first, and the
	      user is then prompted for a  one-line  comment  for
	      each  file.   Enter the comment followed by return,
	      or just return for no comment.

       -d     Remove (delete) entries from a  zip  archive.   For

Info-ZIP	       22 June 1997 (v2.2)			3

ZIP(1L)							  ZIP(1L)

	      example:

		     zip -d foo foo/tom/junk foo/harry/\* \*.o

	      will  remove  the	 entry	foo/tom/junk,  all of the
	      files that start with foo/harry/, and  all  of  the
	      files  that  end	with .o (in any path).	Note that
	      shell pathname expansion has  been  inhibited  with
	      backslashes,  so	that  zip  can see the asterisks,
	      enabling zip to match on the contents  of	 the  zip
	      archive  instead	of  the	 contents  of the current
	      directory.

	      Under MSDOS, -d is case sensitive when  it  matches
	      names  in the zip archive.  This requires that file
	      names be entered in upper case if they were  zipped
	      by PKZIP on an MSDOS system.

       -D     Do not create entries in the zip archive for direc-
	      tories.  Directory entries are created  by  default
	      so  that	their  attributes can be saved in the zip
	      archive.	The environment variable  ZIPOPT  can  be
	      used  to	change	the  default options. For example
	      under Unix with sh:

		     ZIPOPT="-D"; export ZIPOPT

	      (The variable ZIPOPT can be  used	 for  any  option
	      except  -i and -x and can include several options.)
	      The option -D is a shorthand for -x  "*/"	 but  the
	      latter cannot be set as default in the ZIPOPT envi-
	      ronment variable.

       -e     Encrypt the contents of the  zip	archive	 using	a
	      password	which  is  entered  on	the  terminal  in
	      response to a prompt (this will not be  echoed;  if
	      standard	error is not a tty, zip will exit with an
	      error).  The password prompt is  repeated	 to  save
	      the user from typing errors.

       -f     Replace  (freshen)  an  existing	entry  in the zip
	      archive only if it has been modified more	 recently
	      than the version already in the zip archive; unlike
	      the update option (-u) this will not add files that
	      are not already in the zip archive.  For example:

		     zip -f foo

	      This  command should be run from the same directory
	      from which the original zip command was run,  since
	      paths stored in zip archives are always relative.

	      Note  that  the  timezone	 environment  variable TZ
	      should be set according to the  local  timezone  in

Info-ZIP	       22 June 1997 (v2.2)			4

ZIP(1L)							  ZIP(1L)

	      order  for  the -f , -u and -o options to work cor-
	      rectly.

	      The reasons behind this  are  somewhat  subtle  but
	      have  to	do with the differences between the Unix-
	      format file times (always in GMT) and most  of  the
	      other operating systems (always local time) and the
	      necessity to compare the two.  A typical	TZ  value
	      is  ``MET-1MEST''	 (Middle European time with auto-
	      matic adjustment	for  ``summertime''  or	 Daylight
	      Savings Time).

       -F     Fix  the	zip  archive.  This option can be used if
	      some portions of the archive are missing. It is not
	      guaranteed  to  work,  so you MUST make a backup of
	      the original archive first.

	      When doubled as in -FF the compressed  sizes  given
	      inside  the damaged archive are not trusted and zip
	      scans for special signatures to identify the limits
	      between  the archive members. The single -F is more
	      reliable if the archive is not  too  much	 damaged,
	      for  example  if it has only been truncated, so try
	      this option first.

	      Neither option will recover archives that have been
	      incorrectly  transferred	in  ascii mode instead of
	      binary. After the repair, the -t	option	of  unzip
	      may show that some files have a bad CRC. Such files
	      cannot be recovered; you can remove them	from  the
	      archive using the -d option of zip.

       -g     Grow (append to) the specified zip archive, instead
	      of creating a new one. If this operation fails, zip
	      attempts	to  restore  the  archive to its original
	      state. If the restoration fails, the archive  might
	      become  corrupted.  This	option	is  ignored  when
	      there's no existing archive or when  at  least  one
	      archive member must be updated or deleted.

       -h     Display the zip help information (this also appears
	      if zip is run with no arguments).

       -i files
	      Include only the specified files, as in:

		     zip -r foo . -i \*.c

	      which will include only the files that end in .c in
	      the current directory and its subdirectories. (Note
	      for PKZIP users: the equivalent command is

		     pkzip -rP foo *.c

Info-ZIP	       22 June 1997 (v2.2)			5

ZIP(1L)							  ZIP(1L)

	      PKZIP does not allow recursion in directories other
	      than  the	 current  one.)	 The backslash avoids the
	      shell  filename  substitution,  so  that	the  name
	      matching	is performed by zip at all directory lev-
	      els.

	      Also possible:

		     zip -r foo	 . -i@include.lst

	      which will only include the files	 in  the  current
	      directory	 and  its  subdirectories  that match the
	      patterns in the file include.lst.

       -I     Don't scan through  Image	 files.	 This  option  is
	      available	 on  Acorn  RISC  OS only; when used, zip
	      will not consider Image files (eg.  DOS  partitions
	      or Spark archives when SparkFS is loaded) as direc-
	      tories but will store them as single files.

	      For example, if you have SparkFS loaded, zipping	a
	      Spark archive will result in a zipfile containing a
	      directory (and its content)  while  using	 the  'I'
	      option  will result in a zipfile containing a Spark
	      archive. Obviously this second case  will	 also  be
	      obtained	(without the 'I' option) if SparkFS isn't
	      loaded.

       -j     Store just the name  of  a  saved	 file  (junk  the
	      path),   and  do	not  store  directory  names.  By
	      default, zip will store the full path (relative  to
	      the current path).

       -J     Strip any prepended data (e.g. a SFX stub) from the
	      archive.

       -k     Attempt to convert the names and paths  to  conform
	      to  MSDOS, store only the MSDOS attribute (just the
	      user write attribute from UNIX), and mark the entry
	      as  made	under MSDOS (even though it was not); for
	      compatibility with PKUNZIP under MSDOS which cannot
	      handle certain names such as those with two dots.

       -l     Translate	 the  Unix  end-of-line character LF into
	      the MSDOS convention CR LF. This option should  not
	      be  used	on binary files.  This option can be used
	      on Unix if the zip file  is  intended  for  PKUNZIP
	      under  MSDOS. If the input files already contain CR
	      LF, this option adds an extra CR. This ensure  that
	      unzip -a on Unix will get back an exact copy of the
	      original file, to undo the effect of zip -l.

       -ll    Translate the MSDOS end-of-line CR LF into Unix LF.
	      This  option  should  not	 be used on binary files.

Info-ZIP	       22 June 1997 (v2.2)			6

ZIP(1L)							  ZIP(1L)

	      This option can be used on MSDOS if the zip file is
	      intended for unzip under Unix.

       -L     Display the zip license.

       -m     Move  the	 specified  files  into	 the zip archive;
	      actually, this deletes the target directories/files
	      after making the specified zip archive. If a direc-
	      tory becomes empty after removal of the files,  the
	      directory	 is  also  removed. No deletions are done
	      until zip has created the	 archive  without  error.
	      This  is	useful	for conserving disk space, but is
	      potentially dangerous so it is recommended  to  use
	      it  in  combination  with	 -T  to	 test the archive
	      before removing all input files.

       -n suffixes
	      Do not attempt to compress  files	 named	with  the
	      given  suffixes.	 Such files are simply stored (0%
	      compression) in the output zip file,  so	that  zip
	      doesn't  waste  its  time	 trying to compress them.
	      The suffixes are	separated  by  either  colons  or
	      semicolons.  For example:

		     zip -rn .Z:.zip:.tiff:.gif:.snd  foo foo

	      will  copy  everything  from  foo into foo.zip, but
	      will store any files that end in .Z,  .zip,  .tiff,
	      .gif,  or	 .snd  without	trying	to  compress them
	      (image and sound files often have	 their	own  spe-
	      cialized	compression  methods).	 By  default, zip
	      does not compress files with extensions in the list
	      .Z:.zip:.zoo:.arc:.lzh:.arj.  Such files are stored
	      directly in the output  archive.	 The  environment
	      variable	ZIPOPT	can be used to change the default
	      options. For example under Unix with csh:

		     setenv ZIPOPT "-n .gif:.zip"

	      To attempt compression on all files, use:

		     zip -n : foo

	      The maximum compression  option  -9  also	 attempts
	      compression on all files regardless of extension.

	      On  Acorn RISC OS systems the suffixes are actually
	      filetypes (3 hex digit  format).	By  default,  zip
	      does  not compress files with filetypes in the list
	      DDC:D96:68E (i.e. Archives, CFS files  and  PackDir
	      files).

       -N     Save  Amiga filenotes as zipfile comments. They can
	      be restored by using the -N option of  unzip.  This

Info-ZIP	       22 June 1997 (v2.2)			7

ZIP(1L)							  ZIP(1L)

	      option  is  available  on	 the Amiga only. If -c is
	      used also, you are prompted for comments	only  for
	      those files that do not have filenotes.

       -o     Set  the "last modified" time of the zip archive to
	      the latest  (oldest)  "last  modified"  time  found
	      among  the entries in the zip archive.  This can be
	      used without any other operations, if desired.  For
	      example:

	      zip -o foo

	      will  change  the	 last modified time of foo.zip to
	      the latest time of the entries in foo.zip.

       -P password
	      use password to encrypt zipfile entries  (if  any).
	      THIS  IS	INSECURE!  Many multi-user operating sys-
	      tems provide ways for any user to see  the  current
	      command line of any other user; even on stand-alone
	      systems there is always  the  threat  of	over-the-
	      shoulder	peeking.   Storing the plaintext password
	      as part of a command line in an automated script is
	      even  worse.   Whenever possible, use the non-echo-
	      ing, interactive prompt to enter	passwords.   (And
	      where  security  is  truly  important,  use  strong
	      encryption such as Pretty Good Privacy  instead  of
	      the relatively weak encryption provided by standard
	      zipfile utilities.)

       -q     Quiet mode; eliminate  informational  messages  and
	      comment  prompts.	  (Useful,  for example, in shell
	      scripts and background tasks).

       -r     Travel the  directory  structure	recursively;  for
	      example:

		     zip -r foo foo

	      In  this case, all the files and directories in foo
	      are saved in a zip archive named foo.zip, including
	      files  with  names  starting  with  ".",	since the
	      recursion does not use the shell's  file-name  sub-
	      stitution mechanism.  If you wish to include only a
	      specific subset of the files in directory	 foo  and
	      its  subdirectories,  use	 the -i option to specify
	      the pattern of files to be  included.   You  should
	      not  use	-r with the name ".*", since that matches
	      ".."  which will	attempt	 to  zip  up  the  parent
	      directory (probably not what was intended).

       -R     Travel the directory structure recursively starting
	      at the current directory; for example:

Info-ZIP	       22 June 1997 (v2.2)			8

ZIP(1L)							  ZIP(1L)

		     zip -R foo *.c

	      In this case, all the files  matching  *.c  in  the
	      tree  starting  at the current directory are stored
	      into a zip archive named foo.zip.	 Note  for  PKZIP
	      users: the equivalent command is

		     pkzip -rP foo *.c

       -S     Include  system  and  hidden  files. This option is
	      effective on some systems only; it  is  ignored  on
	      Unix.

       -t mmddyyyy
	      Do not operate on files modified prior to the spec-
	      ified date, where mm is the month (0-12), dd is the
	      day of the month (1-31), and yyyy is the year.  For
	      example:

		     zip -rt 12071991 infamy foo

	      will add all the files in foo and	 its  subdirecto-
	      ries that were last modified on or after 7 December
	      1991, to the zip archive infamy.zip.

       -tt mmddyyyy
	      Do not operate on files modified after  or  at  the
	      specified date, where mm is the month (0-12), dd is
	      the day of the month (1-31), and yyyy is the  year.
	      For example:

		     zip -rtt 11301995 infamy foo

	      will  add	 all the files in foo and its subdirecto-
	      ries that were last modified before the 30 November
	      1995, to the zip archive infamy.zip.

       -T     Test  the	 integrity  of	the  new zip file. If the
	      check fails, the old  zip	 file  is  unchanged  and
	      (with the -m option) no input files are removed.

       -u     Replace  (update)	 an  existing  entry  in  the zip
	      archive only if it has been modified more	 recently
	      than  the	 version already in the zip archive.  For
	      example:

		     zip -u stuff *

	      will add any new files in	 the  current  directory,
	      and update any files which have been modified since
	      the zip archive stuff.zip was last created/modified
	      (note  that zip will not try to pack stuff.zip into
	      itself when you do this).

Info-ZIP	       22 June 1997 (v2.2)			9

ZIP(1L)							  ZIP(1L)

	      Note that the -u option with no arguments acts like
	      the -f (freshen) option.

       -v     Verbose mode or print diagnostic version info.

	      Normally,	 when  applied	to  real operations, this
	      option enables the display of a progress	indicator
	      during  compression and requests verbose diagnostic
	      info about zipfile structure oddities.

	      When -v is the only command line argument, and std-
	      out  is  not  redirected	to  a  file, a diagnostic
	      screen is printed. In addition to the  help  screen
	      header  with  program  name,  version,  and release
	      date, some pointers to the Info-ZIP home	and  dis-
	      tribution	 sites are given. Then, it shows informa-
	      tion about the target  environment  (compiler  type
	      and  version,  OS version, compilation date and the
	      enabled optional features used to	 create	 the  zip
	      executable.

       -V     Save  VMS file attributes. This option is available
	      on VMS only; zip archives created with this  option
	      will generally not be usable on other systems.

       -w     Append the version number of the files to the name,
	      including multiple versions of files.   (VMS  only;
	      default:	use  only  the	most  recent version of a
	      specified file).

       -x files
	      Explicitly exclude the specified files, as in:

		     zip -r foo foo -x \*.o

	      which will include the contents of foo  in  foo.zip
	      while  excluding all the files that end in .o.  The
	      backslash avoids the shell  filename  substitution,
	      so  that	the  name matching is performed by zip at
	      all directory levels.

	      Also possible:

		     zip -r foo foo -x@exclude.lst

	      which will include the contents of foo  in  foo.zip
	      while  excluding	all the files that match the pat-
	      terns in the file exclude.lst.

       -X     Do  not  save  extra  file   attributes	(Extended
	      Attributes  on  OS/2,  uid/gid  and  file	 times on
	      Unix).

       -y     Store symbolic links as such in  the  zip	 archive,

Info-ZIP	       22 June 1997 (v2.2)		       10

ZIP(1L)							  ZIP(1L)

	      instead	of   compressing  and  storing	the  file
	      referred to by the link (UNIX only).

       -z     Prompt for a multi-line comment for the entire  zip
	      archive.	The comment is ended by a line containing
	      just a period, or an end of file condition  (^D  on
	      UNIX, ^Z on MSDOS, OS/2, and VAX/VMS).  The comment
	      can be taken from a file:

		     zip -z foo < foowhat

       -#     Regulate the speed of compression using the  speci-
	      fied  digit  #,  where  -0 indicates no compression
	      (store all files), -1 indicates  the  fastest  com-
	      pression method (less compression) and -9 indicates
	      the slowest compression  method  (optimal	 compres-
	      sion,  ignores  the  suffix list). The default com-
	      pression level is -6.

       -@     Take the list of input files from	 standard  input.
	      Only one filename per line.

       -$     Include  the volume label for the the drive holding
	      the first file to be compressed.	If  you	 want  to
	      include  only  the  volume label or to force a spe-
	      cific drive, use the drive name as first file name,
	      as in:

		     zip -$ foo a: c:bar

	      This  option  is	effective  on  some  systems only
	      (MSDOS and OS/2); it is ignored on Unix.

EXAMPLES
       The simplest example:

	      zip stuff *

       creates the archive stuff.zip (assuming it does not exist)
       and  puts all the files in the current directory in it, in
       compressed form (the .zip suffix is  added  automatically,
       unless  that  archive  name  given contains a dot already;
       this allows the explicit specification of other suffixes).

       Because	of  the way the shell does filename substitution,
       files starting with "." are not included; to include these
       as well:

	      zip stuff .* *

       Even  this  will	 not  include any subdirectories from the
       current directory.

       To zip up an entire directory, the command:

Info-ZIP	       22 June 1997 (v2.2)		       11

ZIP(1L)							  ZIP(1L)

	      zip -r foo foo

       creates the archive foo.zip, containing all the files  and
       directories  in the directory foo that is contained within
       the current directory.

       You may want to make a zip archive that contains the files
       in  foo,	 without  recording the directory name, foo.  You
       can use the -j option to leave off the paths, as in:

	      zip -j foo foo/*

       If you are short on disk space, you might not have  enough
       room  to	 hold  both the original directory and the corre-
       sponding compressed zip archive.	 In this  case,	 you  can
       create  the  archive in steps using the -m option.  If foo
       contains the subdirectories tom, dick, and harry, you can:

	      zip -rm foo foo/tom
	      zip -rm foo foo/dick
	      zip -rm foo foo/harry

       where  the first command creates foo.zip, and the next two
       add to it.  At the completion of	 each  zip  command,  the
       last  created archive is deleted, making room for the next
       zip command to function.

PATTERN MATCHING
       This section applies only to UNIX.  Watch this  space  for
       details on MSDOS and VMS operation.

       The  UNIX  shells (sh(1) and csh(1)) do filename substitu-
       tion on command arguments.  The special characters are:

       ?      match any single character

       *      match any number of characters (including none)

       []     match any character in the range	indicated  within
	      the brackets (example: [a-f], [0-9]).

       When  these  characters	are  encountered  (without  being
       escaped with a backslash or quotes), the shell  will  look
       for files relative to the current path that match the pat-
       tern, and replace the argument with a list  of  the  names
       that matched.

       The zip program can do the same matching on names that are
       in the zip archive being modified or, in the case  of  the
       -x (exclude) or -i (include) options, on the list of files
       to be operated on, by using backslashes or quotes to  tell
       the  shell not to do the name expansion.	 In general, when
       zip encounters a name in the list of files to do, it first
       looks for the name in the file system.  If it finds it, it

Info-ZIP	       22 June 1997 (v2.2)		       12

ZIP(1L)							  ZIP(1L)

       then adds it to the list of files to do.	 If it	does  not
       find  it,  it  looks for the name in the zip archive being
       modified (if it exists), using the pattern matching  char-
       acters  described  above,  if present.  For each match, it
       will add that name to the list of files to  be  processed,
       unless  this name matches one given with the -x option, or
       does not match any name given with the -i option.

       The pattern matching includes the path,	and  so	 patterns
       like \*.o match names that end in ".o", no matter what the
       path prefix is.	Note  that  the	 backslash  must  precede
       every  special  character (i.e. ?*[]), or the entire argu-
       ment must be enclosed in double quotes ("").

       In general, use backslash  to  make  zip	 do  the  pattern
       matching	 with  the  -f (freshen) and -d (delete) options,
       and sometimes after the -x (exclude) option when used with
       an appropriate operation (add, -u, -f, or -d).

SEE ALSO
       compress(1), shar(1L), tar(1), unzip(1L), gzip(1L)

DIAGNOSTICS
       The  exit  status  (or  error level) approximates the exit
       codes defined by PKWARE and takes on the following values,
       except under VMS:

	      0	     normal; no errors or warnings detected.

	      2	     unexpected end of zip file.

	      3	     a	generic	 error	in the zipfile format was
		     detected.	 Processing  may  have	completed
		     successfully  anyway;  some  broken zipfiles
		     created by other archivers have simple work-
		     arounds.

	      4	     zip was unable to allocate memory for one or
		     more buffers during program  initialization.

	      5	     a	severe	error  in  the zipfile format was
		     detected.	Processing probably failed  imme-
		     diately.

	      6	     entry too large to be split with zipsplit

	      7	     invalid comment format

	      8	     zip -T failed or out of memory

	      9	     the  user	aborted zip prematurely with con-
		     trol-C (or similar)

	      10     zip encountered an error while using a  temp

Info-ZIP	       22 June 1997 (v2.2)		       13

ZIP(1L)							  ZIP(1L)

		     file

	      11     read or seek error

	      12     zip has nothing to do

	      13     missing or empty zip file

	      14     error writing to a file

	      15     zip was unable to create a file to write to

	      16     bad command line parameters

	      18     zip could not open a specified file to read

       VMS  interprets	standard  Unix	(or  PC) return values as
       other, scarier-looking things, so zip  instead  maps  them
       into  VMS-style	status	codes.	The current mapping is as
       follows:	  1 (success) for normal exit,
	and  (0x7fff000?  +  16*normal_zip_exit_status)	 for  all
       errors,	where  the `?' is 0 (warning) for zip value 12, 2
       (error) for the zip values 3, 6, 7, 9, 13, 16, 18,  and	4
       (fatal error) for the remaining ones.

BUGS
       zip  2.2	 is not compatible with PKUNZIP 1.10. Use zip 1.1
       to produce zip files which can  be  extracted  by  PKUNZIP
       1.10.

       zip  files  produced by zip 2.2 must not be updated by zip
       1.1 or PKZIP 1.10, if they contain encrypted members or if
       they  have  been	 produced  in a pipe or on a non-seekable
       device. The old versions of zip or PKZIP would  create  an
       archive	with  an  incorrect format.  The old versions can
       list the contents of the zip file but  cannot  extract  it
       anyway (because of the new compression algorithm).  If you
       do not use encryption and use regular disk files,  you  do
       not have to care about this problem.

       Under  VMS,  not	 all  of the odd file formats are treated
       properly.  Only stream-LF format zip files are expected to
       work  with  zip.	  Others  can  be  converted  using Rahul
       Dhesi's BILF program.  This version of zip handles some of
       the  conversion internally.  When using Kermit to transfer
       zip files from Vax to MSDOS, type "set file type block" on
       the  Vax.   When	 transfering from MSDOS to Vax, type "set
       file type fixed" on the Vax.  In	 both  cases,  type  "set
       file type binary" on MSDOS.

       Under VMS, zip hangs for file specification that uses DEC-
       net syntax foo::*.*.

       On OS/2, zip  cannot  match  some  names,  such	as  those

Info-ZIP	       22 June 1997 (v2.2)		       14

ZIP(1L)							  ZIP(1L)

       including  an  exclamation mark or a hash sign.	This is a
       bug in OS/2 itself:  the	 32-bit	 DosFindFirst/Next  don't
       find  such names.  Other programs such as GNU tar are also
       affected by this bug.

       Under OS/2, the amount of Extended Attributes displayed by
       DIR  is	(for  compatibility)  the  amount returned by the
       16-bit version of DosQueryPathInfo(). Otherwise	OS/2  1.3
       and  2.0	 would	report	different  EA sizes when DIRing a
       file.  However,	the  structure	layout	returned  by  the
       32-bit  DosQueryPathInfo()  is  a  bit  different, it uses
       extra padding bytes and link pointers (it's a linked list)
       to have all fields on 4-byte boundaries for portability to
       future RISC OS/2 versions. Therefore the value reported by
       zip  (which  uses this 32-bit-mode size) differs from that
       reported by DIR.	 zip stores the 32-bit format for  porta-
       bility,	even  the 16-bit MS-C-compiled version running on
       OS/2 1.3, so even this one shows the 32-bit-mode size.

AUTHORS
       Copyright (C) 1990-1997	Mark  Adler,  Richard  B.  Wales,
       Jean-loup  Gailly,  Onno	 van  der Linden, Kai Uwe Rommel,
       Igor Mandrichenko, John Bush and Paul Kienitz.  Permission
       is  granted to any individual or institution to use, copy,
       or redistribute this software so long as all of the origi-
       nal  files  are	included, that it is not sold for profit,
       and that this copyright notice is retained.

       LIKE ANYTHING ELSE THAT'S FREE,	ZIP  AND  ITS  ASSOCIATED
       UTILITIES  ARE PROVIDED AS IS AND COME WITH NO WARRANTY OF
       ANY KIND, EITHER EXPRESSED OR IMPLIED. IN  NO  EVENT  WILL
       THE  COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES RESULTING
       FROM THE USE OF THIS SOFTWARE.

       Please  send  bug  reports  and	comments  by  email   to:
       zip-bugs@lists.wku.edu.	 For  bug reports, please include
       the version of zip (see zip-h ), the make options used  to
       compile	it  see zip-v ), the machine and operating system
       in use, and as much additional information as possible.

ACKNOWLEDGEMENTS
       Thanks to R. P. Byrne for his  Shrink.Pas  program,  which
       inspired this project, and from which the shrink algorithm
       was stolen; to Phil Katz for placing in the public  domain
       the zip file format, compression format, and .ZIP filename
       extension, and for accepting minor  changes  to	the  file
       format;	to  Steve  Burg for clarifications on the deflate
       format; to Haruhiko Okumura and Leonid Broukhis	for  pro-
       viding some useful ideas for the compression algorithm; to
       Keith Petersen, Rich Wales, Hunter Goatley and Mark  Adler
       for providing a mailing list and ftp site for the Info-ZIP
       group to use; and most importantly, to the Info-ZIP  group
       itself  (listed	in  the	 file  infozip.who) without whose
       tireless testing and bug-fixing	efforts	 a  portable  zip

Info-ZIP	       22 June 1997 (v2.2)		       15

ZIP(1L)							  ZIP(1L)

       would  not  have	 been  possible.  Finally we should thank
       (blame) the first Info-ZIP  moderator,  David  Kirschbaum,
       for  getting  us	 into  this mess in the first place.  The
       manual page was rewritten for UNIX by R. P. C. Rodgers.

Info-ZIP	       22 June 1997 (v2.2)		       16

00000000  0a 5a 49 50 28 31 4c 29  09 09 09 09 09 09 09 20  |.ZIP(1L)....... |
00000010  20 5a 49 50 28 31 4c 29  0a 0a 4e 41 4d 45 0a 20  | ZIP(1L)..NAME. |
00000020  20 20 20 20 20 20 7a 69  70 2c 20 20 7a 69 70 63  |      zip,  zipc|
00000030  6c 6f 61 6b 2c 09 7a 69  70 6e 6f 74 65 2c 20 20  |loak,.zipnote,  |
00000040  7a 69 70 73 70 6c 69 74  20 2d 20 70 61 63 6b 61  |zipsplit - packa|
00000050  67 65 20 61 6e 64 20 63  6f 6d 70 72 65 73 73 0a  |ge and compress.|
00000060  20 20 20 20 20 20 20 28  61 72 63 68 69 76 65 29  |       (archive)|
00000070  20 66 69 6c 65 73 0a 0a  53 59 4e 4f 50 53 49 53  | files..SYNOPSIS|
00000080  0a 20 20 20 20 20 20 20  7a 69 70 20 5b 2d 41 63  |.       zip [-Ac|
00000090  64 44 65 45 66 46 67 68  6a 6b 6c 4c 6d 6f 71 72  |dDeEfFghjklLmoqr|
000000a0  52 53 54 75 76 56 77 58  79 7a 40 24 5d 20 20 5b  |RSTuvVwXyz@$]  [|
000000b0  2d 62 20 70 61 74 68 5d  09 20 5b 2d 6e 20 73 75  |-b path]. [-n su|
000000c0  66 2d 0a 20 20 20 20 20  20 20 66 69 78 65 73 5d  |f-.       fixes]|
000000d0  20 20 5b 2d 74 20 6d 6d  64 64 79 79 79 79 5d 20  |  [-t mmddyyyy] |
000000e0  20 5b 2d 74 74 20 6d 6d  64 64 79 79 79 79 5d 20  | [-tt mmddyyyy] |
000000f0  20 5b 09 20 7a 69 70 66  69 6c 65 20 20 5b 20 66  | [. zipfile  [ f|
00000100  69 6c 65 31 0a 20 20 20  20 20 20 20 66 69 6c 65  |ile1.       file|
00000110  32 20 2e 2e 2e 5d 5d 20  5b 2d 78 69 20 6c 69 73  |2 ...]] [-xi lis|
00000120  74 5d 0a 0a 20 20 20 20  20 20 20 7a 69 70 63 6c  |t]..       zipcl|
00000130  6f 61 6b 20 5b 2d 64 68  4c 5d 20 5b 2d 62 20 70  |oak [-dhL] [-b p|
00000140  61 74 68 5d 20 7a 69 70  66 69 6c 65 0a 0a 20 20  |ath] zipfile..  |
00000150  20 20 20 20 20 7a 69 70  6e 6f 74 65 20 5b 2d 68  |     zipnote [-h|
00000160  77 4c 5d 20 5b 2d 62 20  70 61 74 68 5d 20 7a 69  |wL] [-b path] zi|
00000170  70 66 69 6c 65 0a 0a 20  20 20 20 20 20 20 7a 69  |pfile..       zi|
00000180  70 73 70 6c 69 74 20 5b  2d 68 69 4c 70 73 74 5d  |psplit [-hiLpst]|
00000190  20 5b 2d 6e 20 73 69 7a  65 5d 20 5b 2d 62 20 70  | [-n size] [-b p|
000001a0  61 74 68 5d 20 7a 69 70  66 69 6c 65 0a 0a 44 45  |ath] zipfile..DE|
000001b0  53 43 52 49 50 54 49 4f  4e 0a 20 20 20 20 20 20  |SCRIPTION.      |
000001c0  20 7a 69 70 20 69 73 20  61 20 63 6f 6d 70 72 65  | zip is a compre|
000001d0  73 73 69 6f 6e 20 61 6e  64 20 66 69 6c 65 20 70  |ssion and file p|
000001e0  61 63 6b 61 67 69 6e 67  20 75 74 69 6c 69 74 79  |ackaging utility|
000001f0  20 66 6f 72 20 20 55 6e  69 78 2c 0a 20 20 20 20  | for  Unix,.    |
00000200  20 20 20 56 4d 53 2c 20  20 4d 53 44 4f 53 2c 20  |   VMS,  MSDOS, |
00000210  4f 53 2f 32 2c 20 57 69  6e 64 6f 77 73 20 4e 54  |OS/2, Windows NT|
00000220  2c 20 4d 69 6e 69 78 2c  20 41 74 61 72 69 20 61  |, Minix, Atari a|
00000230  6e 64 20 4d 61 63 69 6e  74 6f 73 68 2c 0a 20 20  |nd Macintosh,.  |
00000240  20 20 20 20 20 41 6d 69  67 61 20 61 6e 64 20 41  |     Amiga and A|
00000250  63 6f 72 6e 20 52 49 53  43 20 4f 53 2e 0a 0a 20  |corn RISC OS... |
00000260  20 20 20 20 20 20 49 74  20 69 73 20 61 6e 61 6c  |      It is anal|
00000270  6f 67 6f 75 73 20 74 6f  20 61 20 20 63 6f 6d 62  |ogous to a  comb|
00000280  69 6e 61 74 69 6f 6e 20  20 6f 66 20 20 74 68 65  |ination  of  the|
00000290  20 20 55 4e 49 58 09 20  63 6f 6d 6d 61 6e 64 73  |  UNIX. commands|
000002a0  0a 20 20 20 20 20 20 20  74 61 72 28 31 29 20 20  |.       tar(1)  |
000002b0  61 6e 64 20 63 6f 6d 70  72 65 73 73 28 31 29 20  |and compress(1) |
000002c0  61 6e 64 20 69 73 20 63  6f 6d 70 61 74 69 62 6c  |and is compatibl|
000002d0  65 20 77 69 74 68 20 50  4b 5a 49 50 20 28 50 68  |e with PKZIP (Ph|
000002e0  69 6c 0a 20 20 20 20 20  20 20 4b 61 74 7a 27 73  |il.       Katz's|
000002f0  20 5a 49 50 20 66 6f 72  20 4d 53 44 4f 53 20 73  | ZIP for MSDOS s|
00000300  79 73 74 65 6d 73 29 2e  0a 0a 20 20 20 20 20 20  |ystems)...      |
00000310  20 41 20 63 6f 6d 70 61  6e 69 6f 6e 20 70 72 6f  | A companion pro|
00000320  67 72 61 6d 20 20 28 75  6e 7a 69 70 28 31 4c 29  |gram  (unzip(1L)|
00000330  29 2c 20 20 75 6e 70 61  63 6b 73 20 20 7a 69 70  |),  unpacks  zip|
00000340  09 61 72 63 68 69 76 65  73 2e 0a 20 20 20 20 20  |.archives..     |
00000350  20 20 54 68 65 20 7a 69  70 20 61 6e 64 20 75 6e  |  The zip and un|
00000360  7a 69 70 28 31 4c 29 20  70 72 6f 67 72 61 6d 73  |zip(1L) programs|
00000370  20 63 61 6e 20 77 6f 72  6b 20 77 69 74 68 20 61  | can work with a|
00000380  72 63 68 69 76 65 73 20  70 72 6f 2d 0a 20 20 20  |rchives pro-.   |
00000390  20 20 20 20 64 75 63 65  64 20 62 79 20 50 4b 5a  |    duced by PKZ|
000003a0  49 50 2c 09 61 6e 64 20  20 50 4b 5a 49 50 20 20  |IP,.and  PKZIP  |
000003b0  61 6e 64 09 20 50 4b 55  4e 5a 49 50 20 20 63 61  |and. PKUNZIP  ca|
000003c0  6e 20 20 77 6f 72 6b 20  20 77 69 74 68 0a 20 20  |n  work  with.  |
000003d0  20 20 20 20 20 61 72 63  68 69 76 65 73 09 20 70  |     archives. p|
000003e0  72 6f 64 75 63 65 64 20  20 62 79 20 7a 69 70 2e  |roduced  by zip.|
000003f0  20 20 7a 69 70 20 76 65  72 73 69 6f 6e 20 32 2e  |  zip version 2.|
00000400  32 20 69 73 20 63 6f 6d  70 61 74 69 62 6c 65 0a  |2 is compatible.|
00000410  20 20 20 20 20 20 20 77  69 74 68 20 50 4b 5a 49  |       with PKZI|
00000420  50 20 32 2e 30 34 2e 09  20 4e 6f 74 65 20 74 68  |P 2.04.. Note th|
00000430  61 74 20 50 4b 55 4e 5a  49 50 20 20 31 2e 31 30  |at PKUNZIP  1.10|
00000440  20 20 63 61 6e 6e 6f 74  20 20 65 78 74 72 61 63  |  cannot  extrac|
00000450  74 0a 20 20 20 20 20 20  20 66 69 6c 65 73 20 20  |t.       files  |
00000460  70 72 6f 64 75 63 65 64  09 62 79 20 20 50 4b 5a  |produced.by  PKZ|
00000470  49 50 20 20 32 2e 30 34  09 20 6f 72 20 7a 69 70  |IP  2.04. or zip|
00000480  20 32 2e 32 2e 20 59 6f  75 20 6d 75 73 74 20 75  | 2.2. You must u|
00000490  73 65 0a 20 20 20 20 20  20 20 50 4b 55 4e 5a 49  |se.       PKUNZI|
000004a0  50 20 32 2e 30 34 67 20  20 6f 72 20 20 75 6e 7a  |P 2.04g  or  unz|
000004b0  69 70 09 20 35 2e 30 70  31 09 28 6f 72 20 20 6c  |ip. 5.0p1.(or  l|
000004c0  61 74 65 72 20 20 76 65  72 73 69 6f 6e 73 29 20  |ater  versions) |
000004d0  20 74 6f 0a 20 20 20 20  20 20 20 65 78 74 72 61  | to.       extra|
000004e0  63 74 20 74 68 65 6d 2e  0a 0a 20 20 20 20 20 20  |ct them...      |
000004f0  20 46 6f 72 20 61 20 62  72 69 65 66 20 68 65 6c  | For a brief hel|
00000500  70 20 6f 6e 20 7a 69 70  20 61 6e 64 20 75 6e 7a  |p on zip and unz|
00000510  69 70 2c 20 72 75 6e 20  65 61 63 68 20 77 69 74  |ip, run each wit|
00000520  68 6f 75 74 20 73 70 65  63 69 2d 0a 20 20 20 20  |hout speci-.    |
00000530  20 20 20 66 79 69 6e 67  20 61 6e 79 20 70 61 72  |   fying any par|
00000540  61 6d 65 74 65 72 73 20  6f 6e 20 74 68 65 20 63  |ameters on the c|
00000550  6f 6d 6d 61 6e 64 20 6c  69 6e 65 2e 0a 0a 20 20  |ommand line...  |
00000560  20 20 20 20 20 54 68 65  20 70 72 6f 67 72 61 6d  |     The program|
00000570  20 69 73 20 75 73 65 66  75 6c 20 66 6f 72 20 70  | is useful for p|
00000580  61 63 6b 61 67 69 6e 67  20 61 20 20 73 65 74 20  |ackaging a  set |
00000590  20 6f 66 20 20 66 69 6c  65 73 20 20 66 6f 72 0a  | of  files  for.|
000005a0  20 20 20 20 20 20 20 64  69 73 74 72 69 62 75 74  |       distribut|
000005b0  69 6f 6e 3b 20 20 66 6f  72 20 20 61 72 63 68 69  |ion;  for  archi|
000005c0  76 69 6e 67 20 20 66 69  6c 65 73 3b 20 20 61 6e  |ving  files;  an|
000005d0  64 20 66 6f 72 20 73 61  76 69 6e 67 20 64 69 73  |d for saving dis|
000005e0  6b 0a 20 20 20 20 20 20  20 73 70 61 63 65 20 62  |k.       space b|
000005f0  79 20 74 65 6d 70 6f 72  61 72 69 6c 79 20 63 6f  |y temporarily co|
00000600  6d 70 72 65 73 73 69 6e  67 20 75 6e 75 73 65 64  |mpressing unused|
00000610  20 66 69 6c 65 73 20 6f  72 09 20 64 69 72 65 63  | files or. direc|
00000620  74 6f 2d 0a 20 20 20 20  20 20 20 72 69 65 73 2e  |to-.       ries.|
00000630  0a 0a 20 20 20 20 20 20  20 54 68 65 20 20 7a 69  |..       The  zi|
00000640  70 09 20 70 72 6f 67 72  61 6d 20 70 75 74 73 20  |p. program puts |
00000650  6f 6e 65 20 6f 72 20 6d  6f 72 65 20 63 6f 6d 70  |one or more comp|
00000660  72 65 73 73 65 64 20 66  69 6c 65 73 20 69 6e 74  |ressed files int|
00000670  6f 20 61 0a 20 20 20 20  20 20 20 73 69 6e 67 6c  |o a.       singl|
00000680  65 20 7a 69 70 20 61 72  63 68 69 76 65 2c 20 61  |e zip archive, a|
00000690  6c 6f 6e 67 20 77 69 74  68 20 69 6e 66 6f 72 6d  |long with inform|
000006a0  61 74 69 6f 6e 20 61 62  6f 75 74 20 74 68 65 20  |ation about the |
000006b0  66 69 6c 65 73 0a 20 20  20 20 20 20 20 28 6e 61  |files.       (na|
000006c0  6d 65 2c 20 20 70 61 74  68 2c 20 64 61 74 65 2c  |me,  path, date,|
000006d0  20 74 69 6d 65 20 6f 66  20 6c 61 73 74 20 6d 6f  | time of last mo|
000006e0  64 69 66 69 63 61 74 69  6f 6e 2c 20 70 72 6f 74  |dification, prot|
000006f0  65 63 74 69 6f 6e 2c 0a  20 20 20 20 20 20 20 61  |ection,.       a|
00000700  6e 64 20 63 68 65 63 6b  20 20 69 6e 66 6f 72 6d  |nd check  inform|
00000710  61 74 69 6f 6e 20 20 74  6f 20 20 76 65 72 69 66  |ation  to  verif|
00000720  79 20 20 66 69 6c 65 09  20 69 6e 74 65 67 72 69  |y  file. integri|
00000730  74 79 29 2e 20 20 20 41  6e 0a 20 20 20 20 20 20  |ty).   An.      |
00000740  20 65 6e 74 69 72 65 20  20 64 69 72 65 63 74 6f  | entire  directo|
00000750  72 79 20 20 73 74 72 75  63 74 75 72 65 20 20 63  |ry  structure  c|
00000760  61 6e 20 20 62 65 20 20  70 61 63 6b 65 64 20 20  |an  be  packed  |
00000770  69 6e 74 6f 20 20 61 20  7a 69 70 0a 20 20 20 20  |into  a zip.    |
00000780  20 20 20 61 72 63 68 69  76 65 20 77 69 74 68 20  |   archive with |
00000790  61 20 73 69 6e 67 6c 65  20 63 6f 6d 6d 61 6e 64  |a single command|
000007a0  2e 20 20 43 6f 6d 70 72  65 73 73 69 6f 6e 20 72  |.  Compression r|
000007b0  61 74 69 6f 73 20 6f 66  20 20 32 3a 31 0a 20 20  |atios of  2:1.  |
000007c0  20 20 20 20 20 74 6f 20  33 3a 31 20 61 72 65 20  |     to 3:1 are |
000007d0  63 6f 6d 6d 6f 6e 20 66  6f 72 20 74 65 78 74 20  |common for text |
000007e0  66 69 6c 65 73 2e 20 20  7a 69 70 20 68 61 73 20  |files.  zip has |
000007f0  6f 6e 65 20 63 6f 6d 70  72 65 73 73 69 6f 6e 0a  |one compression.|
00000800  20 20 20 20 20 20 20 6d  65 74 68 6f 64 20 28 64  |       method (d|
00000810  65 66 6c 61 74 69 6f 6e  29 20 61 6e 64 20 63 61  |eflation) and ca|
00000820  6e 20 61 6c 73 6f 20 73  74 6f 72 65 20 66 69 6c  |n also store fil|
00000830  65 73 20 20 77 69 74 68  6f 75 74 20 20 63 6f 6d  |es  without  com|
00000840  2d 0a 20 20 20 20 20 20  20 70 72 65 73 73 69 6f  |-.       pressio|
00000850  6e 2e 20 20 7a 69 70 20  61 75 74 6f 6d 61 74 69  |n.  zip automati|
00000860  63 61 6c 6c 79 20 63 68  6f 6f 73 65 73 20 74 68  |cally chooses th|
00000870  65 20 62 65 74 74 65 72  20 6f 66 20 74 68 65 20  |e better of the |
00000880  74 77 6f 0a 20 20 20 20  20 20 20 66 6f 72 20 65  |two.       for e|
00000890  61 63 68 20 66 69 6c 65  20 74 6f 20 62 65 20 63  |ach file to be c|
000008a0  6f 6d 70 72 65 73 73 65  64 2e 0a 0a 20 20 20 20  |ompressed...    |
000008b0  20 20 20 57 68 65 6e 20  67 69 76 65 6e 20 74 68  |   When given th|
000008c0  65 20 6e 61 6d 65 20 6f  66 20 61 6e 20 65 78 69  |e name of an exi|
000008d0  73 74 69 6e 67 20 7a 69  70 20 61 72 63 68 69 76  |sting zip archiv|
000008e0  65 2c 09 7a 69 70 20 20  77 69 6c 6c 0a 20 20 20  |e,.zip  will.   |
000008f0  20 20 20 20 72 65 70 6c  61 63 65 09 69 64 65 6e  |    replace.iden|
00000900  74 69 63 61 6c 6c 79 20  20 6e 61 6d 65 64 20 20  |tically  named  |
00000910  65 6e 74 72 69 65 73 20  69 6e 20 74 68 65 20 7a  |entries in the z|
00000920  69 70 20 61 72 63 68 69  76 65 20 6f 72 0a 0a 49  |ip archive or..I|
00000930  6e 66 6f 2d 5a 49 50 09  20 20 20 20 20 20 20 32  |nfo-ZIP.       2|
00000940  32 20 4a 75 6e 65 20 31  39 39 37 20 28 76 32 2e  |2 June 1997 (v2.|
00000950  32 29 09 09 09 31 0a 0a  5a 49 50 28 31 4c 29 09  |2)...1..ZIP(1L).|
00000960  09 09 09 09 09 09 20 20  5a 49 50 28 31 4c 29 0a  |......  ZIP(1L).|
00000970  0a 20 20 20 20 20 20 20  61 64 64 20 65 6e 74 72  |.       add entr|
00000980  69 65 73 20 66 6f 72 20  6e 65 77 20 6e 61 6d 65  |ies for new name|
00000990  73 2e 20 20 46 6f 72 20  65 78 61 6d 70 6c 65 2c  |s.  For example,|
000009a0  20 69 66 20 66 6f 6f 2e  7a 69 70 20 65 78 69 73  | if foo.zip exis|
000009b0  74 73 0a 20 20 20 20 20  20 20 61 6e 64 20 20 63  |ts.       and  c|
000009c0  6f 6e 74 61 69 6e 73 20  20 66 6f 6f 2f 66 69 6c  |ontains  foo/fil|
000009d0  65 31 09 20 61 6e 64 20  66 6f 6f 2f 66 69 6c 65  |e1. and foo/file|
000009e0  32 2c 20 61 6e 64 20 74  68 65 20 64 69 72 65 63  |2, and the direc|
000009f0  74 6f 72 79 0a 20 20 20  20 20 20 20 66 6f 6f 20  |tory.       foo |
00000a00  63 6f 6e 74 61 69 6e 73  20 74 68 65 20 66 69 6c  |contains the fil|
00000a10  65 73 20 66 6f 6f 2f 66  69 6c 65 31 20 61 6e 64  |es foo/file1 and|
00000a20  20 66 6f 6f 2f 66 69 6c  65 33 2c 20 74 68 65 6e  | foo/file3, then|
00000a30  3a 0a 0a 09 20 20 20 20  20 20 7a 69 70 20 2d 72  |:...      zip -r|
00000a40  20 66 6f 6f 20 66 6f 6f  0a 0a 20 20 20 20 20 20  | foo foo..      |
00000a50  20 77 69 6c 6c 20 72 65  70 6c 61 63 65 20 66 6f  | will replace fo|
00000a60  6f 2f 66 69 6c 65 31 20  69 6e 20 66 6f 6f 2e 7a  |o/file1 in foo.z|
00000a70  69 70 20 20 61 6e 64 20  20 61 64 64 20 20 66 6f  |ip  and  add  fo|
00000a80  6f 2f 66 69 6c 65 33 20  20 74 6f 0a 20 20 20 20  |o/file3  to.    |
00000a90  20 20 20 66 6f 6f 2e 7a  69 70 2e 09 20 20 20 41  |   foo.zip..   A|
00000aa0  66 74 65 72 20 20 20 74  68 69 73 2c 20 20 20 66  |fter   this,   f|
00000ab0  6f 6f 2e 7a 69 70 20 20  20 63 6f 6e 74 61 69 6e  |oo.zip   contain|
00000ac0  73 20 20 66 6f 6f 2f 66  69 6c 65 31 2c 0a 20 20  |s  foo/file1,.  |
00000ad0  20 20 20 20 20 66 6f 6f  2f 66 69 6c 65 32 2c 20  |     foo/file2, |
00000ae0  61 6e 64 20 66 6f 6f 2f  66 69 6c 65 33 2c 20 77  |and foo/file3, w|
00000af0  69 74 68 20 20 66 6f 6f  2f 66 69 6c 65 32 20 20  |ith  foo/file2  |
00000b00  75 6e 63 68 61 6e 67 65  64 20 20 66 72 6f 6d 0a  |unchanged  from.|
00000b10  20 20 20 20 20 20 20 62  65 66 6f 72 65 2e 0a 0a  |       before...|
00000b20  20 20 20 20 20 20 20 49  66 20 74 68 65 20 66 69  |       If the fi|
00000b30  6c 65 20 6c 69 73 74 20  69 73 20 73 70 65 63 69  |le list is speci|
00000b40  66 69 65 64 20 61 73 20  2d 40 2c 20 7a 69 70 20  |fied as -@, zip |
00000b50  74 61 6b 65 73 20 74 68  65 20 6c 69 73 74 20 6f  |takes the list o|
00000b60  66 0a 20 20 20 20 20 20  20 69 6e 70 75 74 20 66  |f.       input f|
00000b70  69 6c 65 73 20 66 72 6f  6d 20 73 74 61 6e 64 61  |iles from standa|
00000b80  72 64 20 69 6e 70 75 74  2e 09 20 55 6e 64 65 72  |rd input.. Under|
00000b90  20 55 4e 49 58 2c 20 74  68 69 73 20 20 6f 70 74  | UNIX, this  opt|
00000ba0  69 6f 6e 0a 20 20 20 20  20 20 20 63 61 6e 20 20  |ion.       can  |
00000bb0  62 65 09 75 73 65 64 20  20 74 6f 20 20 70 6f 77  |be.used  to  pow|
00000bc0  65 72 66 75 6c 20 65 66  66 65 63 74 20 69 6e 20  |erful effect in |
00000bd0  63 6f 6e 6a 75 6e 63 74  69 6f 6e 20 77 69 74 68  |conjunction with|
00000be0  20 74 68 65 0a 20 20 20  20 20 20 20 66 69 6e 64  | the.       find|
00000bf0  28 31 29 20 63 6f 6d 6d  61 6e 64 2e 09 20 46 6f  |(1) command.. Fo|
00000c00  72 20 65 78 61 6d 70 6c  65 2c 20 74 6f 20 61 72  |r example, to ar|
00000c10  63 68 69 76 65 20 61 6c  6c 20 74 68 65 20 43 20  |chive all the C |
00000c20  73 6f 75 72 63 65 0a 20  20 20 20 20 20 20 66 69  |source.       fi|
00000c30  6c 65 73 20 69 6e 20 74  68 65 20 63 75 72 72 65  |les in the curre|
00000c40  6e 74 20 64 69 72 65 63  74 6f 72 79 20 61 6e 64  |nt directory and|
00000c50  20 69 74 73 20 73 75 62  64 69 72 65 63 74 6f 72  | its subdirector|
00000c60  69 65 73 3a 0a 0a 09 20  20 20 20 20 20 66 69 6e  |ies:...      fin|
00000c70  64 20 2e 20 2d 6e 61 6d  65 20 22 2a 2e 5b 63 68  |d . -name "*.[ch|
00000c80  5d 22 20 2d 70 72 69 6e  74 20 7c 20 7a 69 70 20  |]" -print | zip |
00000c90  73 6f 75 72 63 65 20 2d  40 0a 0a 20 20 20 20 20  |source -@..     |
00000ca0  20 20 28 6e 6f 74 65 20  20 74 68 61 74 20 20 74  |  (note  that  t|
00000cb0  68 65 09 20 70 61 74 74  65 72 6e 20 6d 75 73 74  |he. pattern must|
00000cc0  20 62 65 20 71 75 6f 74  65 64 20 74 6f 20 6b 65  | be quoted to ke|
00000cd0  65 70 20 74 68 65 20 73  68 65 6c 6c 0a 20 20 20  |ep the shell.   |
00000ce0  20 20 20 20 66 72 6f 6d  20 65 78 70 61 6e 64 69  |    from expandi|
00000cf0  6e 67 20 69 74 29 2e 20  20 7a 69 70 20 77 69 6c  |ng it).  zip wil|
00000d00  6c 20 61 6c 73 6f 20 61  63 63 65 70 74 20 20 61  |l also accept  a|
00000d10  20 20 73 69 6e 67 6c 65  20 20 64 61 73 68 0a 20  |  single  dash. |
00000d20  20 20 20 20 20 20 28 22  2d 22 29 20 20 61 73 20  |      ("-")  as |
00000d30  20 74 68 65 20 20 7a 69  70 20 66 69 6c 65 20 6e  | the  zip file n|
00000d40  61 6d 65 2c 20 69 6e 20  77 68 69 63 68 20 63 61  |ame, in which ca|
00000d50  73 65 20 69 74 20 77 69  6c 6c 20 77 72 69 74 65  |se it will write|
00000d60  0a 20 20 20 20 20 20 20  74 68 65 20 7a 69 70 20  |.       the zip |
00000d70  66 69 6c 65 20 74 6f 20  73 74 61 6e 64 61 72 64  |file to standard|
00000d80  20 6f 75 74 70 75 74 2c  20 61 6c 6c 6f 77 69 6e  | output, allowin|
00000d90  67 20 74 68 65 20 6f 75  74 70 75 74 20 74 6f 20  |g the output to |
00000da0  62 65 0a 20 20 20 20 20  20 20 70 69 70 65 64 20  |be.       piped |
00000db0  74 6f 20 61 6e 6f 74 68  65 72 20 70 72 6f 67 72  |to another progr|
00000dc0  61 6d 2e 20 46 6f 72 20  65 78 61 6d 70 6c 65 3a  |am. For example:|
00000dd0  0a 0a 09 20 20 20 20 20  20 7a 69 70 20 2d 72 20  |...      zip -r |
00000de0  2d 20 2e 20 7c 20 64 64  20 6f 66 3d 2f 64 65 76  |- . | dd of=/dev|
00000df0  2f 6e 72 73 74 30 20 6f  62 73 3d 31 36 6b 0a 0a  |/nrst0 obs=16k..|
00000e00  20 20 20 20 20 20 20 77  6f 75 6c 64 20 20 77 72  |       would  wr|
00000e10  69 74 65 20 20 74 68 65  20 20 7a 69 70 20 20 6f  |ite  the  zip  o|
00000e20  75 74 70 75 74 20 64 69  72 65 63 74 6c 79 20 74  |utput directly t|
00000e30  6f 20 61 20 74 61 70 65  20 77 69 74 68 20 74 68  |o a tape with th|
00000e40  65 0a 20 20 20 20 20 20  20 73 70 65 63 69 66 69  |e.       specifi|
00000e50  65 64 20 62 6c 6f 63 6b  20 73 69 7a 65 20 66 6f  |ed block size fo|
00000e60  72 20 74 68 65 20 70 75  72 70 6f 73 65 20 20 6f  |r the purpose  o|
00000e70  66 09 20 62 61 63 6b 69  6e 67 20 20 75 70 20 20  |f. backing  up  |
00000e80  74 68 65 0a 20 20 20 20  20 20 20 63 75 72 72 65  |the.       curre|
00000e90  6e 74 20 64 69 72 65 63  74 6f 72 79 2e 0a 0a 20  |nt directory... |
00000ea0  20 20 20 20 20 20 7a 69  70 20 61 6c 73 6f 20 61  |      zip also a|
00000eb0  63 63 65 70 74 73 20 61  20 73 69 6e 67 6c 65 20  |ccepts a single |
00000ec0  64 61 73 68 20 28 22 2d  22 29 20 61 73 20 74 68  |dash ("-") as th|
00000ed0  65 20 6e 61 6d 65 20 6f  66 20 61 20 66 69 6c 65  |e name of a file|
00000ee0  0a 20 20 20 20 20 20 20  74 6f 20 62 65 20 63 6f  |.       to be co|
00000ef0  6d 70 72 65 73 73 65 64  2c 20 69 6e 20 77 68 69  |mpressed, in whi|
00000f00  63 68 20 63 61 73 65 20  69 74 20 77 69 6c 6c 20  |ch case it will |
00000f10  72 65 61 64 20 74 68 65  20 66 69 6c 65 20 66 72  |read the file fr|
00000f20  6f 6d 0a 20 20 20 20 20  20 20 73 74 61 6e 64 61  |om.       standa|
00000f30  72 64 09 20 69 6e 70 75  74 2c 09 20 61 6c 6c 6f  |rd. input,. allo|
00000f40  77 69 6e 67 20 20 7a 69  70 20 74 6f 20 74 61 6b  |wing  zip to tak|
00000f50  65 20 69 6e 70 75 74 20  66 72 6f 6d 20 61 6e 6f  |e input from ano|
00000f60  74 68 65 72 0a 20 20 20  20 20 20 20 70 72 6f 67  |ther.       prog|
00000f70  72 61 6d 2e 20 46 6f 72  20 65 78 61 6d 70 6c 65  |ram. For example|
00000f80  3a 0a 0a 09 20 20 20 20  20 20 74 61 72 20 63 66  |:...      tar cf|
00000f90  20 2d 20 2e 20 7c 20 7a  69 70 20 62 61 63 6b 75  | - . | zip backu|
00000fa0  70 20 2d 0a 0a 20 20 20  20 20 20 20 77 6f 75 6c  |p -..       woul|
00000fb0  64 20 63 6f 6d 70 72 65  73 73 20 74 68 65 20 6f  |d compress the o|
00000fc0  75 74 70 75 74 20 6f 66  20 74 68 65 20 74 61 72  |utput of the tar|
00000fd0  20 63 6f 6d 6d 61 6e 64  20 66 6f 72 20 74 68 65  | command for the|
00000fe0  20 20 70 75 72 2d 0a 20  20 20 20 20 20 20 70 6f  |  pur-.       po|
00000ff0  73 65 20 20 6f 66 09 20  62 61 63 6b 69 6e 67 20  |se  of. backing |
00001000  75 70 20 74 68 65 20 63  75 72 72 65 6e 74 20 64  |up the current d|
00001010  69 72 65 63 74 6f 72 79  2e 20 54 68 69 73 20 67  |irectory. This g|
00001020  65 6e 65 72 61 6c 6c 79  0a 20 20 20 20 20 20 20  |enerally.       |
00001030  70 72 6f 64 75 63 65 73  20 62 65 74 74 65 72 09  |produces better.|
00001040  63 6f 6d 70 72 65 73 73  69 6f 6e 20 20 74 68 61  |compression  tha|
00001050  6e 20 20 74 68 65 09 70  72 65 76 69 6f 75 73 20  |n  the.previous |
00001060  20 65 78 61 6d 70 6c 65  0a 20 20 20 20 20 20 20  | example.       |
00001070  75 73 69 6e 67 20 20 74  68 65 20 20 2d 72 20 20  |using  the  -r  |
00001080  6f 70 74 69 6f 6e 2c 09  62 65 63 61 75 73 65 20  |option,.because |
00001090  7a 69 70 20 63 61 6e 20  74 61 6b 65 20 61 64 76  |zip can take adv|
000010a0  61 6e 74 61 67 65 20 6f  66 0a 20 20 20 20 20 20  |antage of.      |
000010b0  20 72 65 64 75 6e 64 61  6e 63 79 20 62 65 74 77  | redundancy betw|
000010c0  65 65 6e 20 66 69 6c 65  73 2e 20 54 68 65 20 62  |een files. The b|
000010d0  61 63 6b 75 70 20 63 61  6e 20 62 65 20 72 65 73  |ackup can be res|
000010e0  74 6f 72 65 64 20 75 73  69 6e 67 0a 20 20 20 20  |tored using.    |
000010f0  20 20 20 74 68 65 20 63  6f 6d 6d 61 6e 64 0a 0a  |   the command..|
00001100  09 20 20 20 20 20 20 75  6e 7a 69 70 20 2d 70 20  |.      unzip -p |
00001110  62 61 63 6b 75 70 20 7c  20 74 61 72 20 78 66 20  |backup | tar xf |
00001120  2d 0a 0a 20 20 20 20 20  20 20 57 68 65 6e 20 20  |-..       When  |
00001130  6e 6f 20 7a 69 70 20 66  69 6c 65 20 6e 61 6d 65  |no zip file name|
00001140  20 69 73 20 67 69 76 65  6e 20 61 6e 64 20 73 74  | is given and st|
00001150  64 6f 75 74 20 69 73 20  6e 6f 74 20 61 20 74 65  |dout is not a te|
00001160  72 6d 69 2d 0a 20 20 20  20 20 20 20 6e 61 6c 2c  |rmi-.       nal,|
00001170  20 7a 69 70 20 61 63 74  73 20 61 73 20 61 20 66  | zip acts as a f|
00001180  69 6c 74 65 72 2c 20 63  6f 6d 70 72 65 73 73 69  |ilter, compressi|
00001190  6e 67 20 73 74 61 6e 64  61 72 64 09 69 6e 70 75  |ng standard.inpu|
000011a0  74 20 20 74 6f 0a 20 20  20 20 20 20 20 73 74 61  |t  to.       sta|
000011b0  6e 64 61 72 64 20 6f 75  74 70 75 74 2e 09 20 46  |ndard output.. F|
000011c0  6f 72 20 65 78 61 6d 70  6c 65 2c 0a 0a 09 20 20  |or example,...  |
000011d0  20 20 20 20 74 61 72 20  63 66 20 2d 20 2e 20 7c  |    tar cf - . ||
000011e0  20 7a 69 70 20 7c 20 64  64 20 6f 66 3d 2f 64 65  | zip | dd of=/de|
000011f0  76 2f 6e 72 73 74 30 20  6f 62 73 3d 31 36 6b 0a  |v/nrst0 obs=16k.|
00001200  0a 20 20 20 20 20 20 20  69 73 20 65 71 75 69 76  |.       is equiv|
00001210  61 6c 65 6e 74 20 74 6f  0a 0a 49 6e 66 6f 2d 5a  |alent to..Info-Z|
00001220  49 50 09 20 20 20 20 20  20 20 32 32 20 4a 75 6e  |IP.       22 Jun|
00001230  65 20 31 39 39 37 20 28  76 32 2e 32 29 09 09 09  |e 1997 (v2.2)...|
00001240  32 0a 0a 5a 49 50 28 31  4c 29 09 09 09 09 09 09  |2..ZIP(1L)......|
00001250  09 20 20 5a 49 50 28 31  4c 29 0a 0a 09 20 20 20  |.  ZIP(1L)...   |
00001260  20 20 20 74 61 72 20 63  66 20 2d 20 2e 20 7c 20  |   tar cf - . | |
00001270  7a 69 70 20 2d 20 2d 20  7c 20 64 64 20 6f 66 3d  |zip - - | dd of=|
00001280  2f 64 65 76 2f 6e 72 73  74 30 20 6f 62 73 3d 31  |/dev/nrst0 obs=1|
00001290  36 6b 0a 0a 20 20 20 20  20 20 20 7a 69 70 20 20  |6k..       zip  |
000012a0  61 72 63 68 69 76 65 73  20 63 72 65 61 74 65 64  |archives created|
000012b0  20 69 6e 20 74 68 69 73  20 6d 61 6e 6e 65 72 20  | in this manner |
000012c0  63 61 6e 20 62 65 20 65  78 74 72 61 63 74 65 64  |can be extracted|
000012d0  20 77 69 74 68 0a 20 20  20 20 20 20 20 74 68 65  | with.       the|
000012e0  20 70 72 6f 67 72 61 6d  20 66 75 6e 7a 69 70 20  | program funzip |
000012f0  77 68 69 63 68 20 69 73  20 70 72 6f 76 69 64 65  |which is provide|
00001300  64 20 69 6e 20 74 68 65  20 75 6e 7a 69 70 20 70  |d in the unzip p|
00001310  61 63 6b 61 67 65 2c 0a  20 20 20 20 20 20 20 6f  |ackage,.       o|
00001320  72 20 20 62 79 20 20 67  75 6e 7a 69 70 20 20 77  |r  by  gunzip  w|
00001330  68 69 63 68 20 69 73 20  70 72 6f 76 69 64 65 64  |hich is provided|
00001340  20 69 6e 20 74 68 65 20  67 7a 69 70 20 70 61 63  | in the gzip pac|
00001350  6b 61 67 65 2e 20 46 6f  72 0a 20 20 20 20 20 20  |kage. For.      |
00001360  20 65 78 61 6d 70 6c 65  3a 0a 0a 20 20 20 20 20  | example:..     |
00001370  20 20 64 64 20 69 66 3d  2f 64 65 76 2f 6e 72 73  |  dd if=/dev/nrs|
00001380  74 30 09 20 69 62 73 3d  31 36 6b 20 7c 20 66 75  |t0. ibs=16k | fu|
00001390  6e 7a 69 70 20 7c 20 74  61 72 20 78 76 66 20 2d  |nzip | tar xvf -|
000013a0  0a 0a 20 20 20 20 20 20  20 57 68 65 6e 20 63 68  |..       When ch|
000013b0  61 6e 67 69 6e 67 20 61  6e 20 65 78 69 73 74 69  |anging an existi|
000013c0  6e 67 20 7a 69 70 20 61  72 63 68 69 76 65 2c 20  |ng zip archive, |
000013d0  7a 69 70 20 20 77 69 6c  6c 09 20 77 72 69 74 65  |zip  will. write|
000013e0  09 61 0a 20 20 20 20 20  20 20 74 65 6d 70 6f 72  |.a.       tempor|
000013f0  61 72 79 20 66 69 6c 65  20 77 69 74 68 20 74 68  |ary file with th|
00001400  65 20 6e 65 77 20 63 6f  6e 74 65 6e 74 73 2c 20  |e new contents, |
00001410  61 6e 64 20 6f 6e 6c 79  20 72 65 70 6c 61 63 65  |and only replace|
00001420  20 74 68 65 0a 20 20 20  20 20 20 20 6f 6c 64 20  | the.       old |
00001430  6f 6e 65 20 77 68 65 6e  20 74 68 65 20 70 72 6f  |one when the pro|
00001440  63 65 73 73 20 6f 66 20  63 72 65 61 74 69 6e 67  |cess of creating|
00001450  20 74 68 65 20 6e 65 77  20 20 76 65 72 73 69 6f  | the new  versio|
00001460  6e 20 20 68 61 73 0a 20  20 20 20 20 20 20 62 65  |n  has.       be|
00001470  65 6e 20 63 6f 6d 70 6c  65 74 65 64 20 77 69 74  |en completed wit|
00001480  68 6f 75 74 20 65 72 72  6f 72 2e 0a 0a 20 20 20  |hout error...   |
00001490  20 20 20 20 49 66 20 20  74 68 65 20 6e 61 6d 65  |    If  the name|
000014a0  20 6f 66 20 74 68 65 20  7a 69 70 20 61 72 63 68  | of the zip arch|
000014b0  69 76 65 20 64 6f 65 73  20 6e 6f 74 20 63 6f 6e  |ive does not con|
000014c0  74 61 69 6e 20 61 6e 20  65 78 74 65 6e 2d 0a 20  |tain an exten-. |
000014d0  20 20 20 20 20 20 73 69  6f 6e 2c 20 74 68 65 20  |      sion, the |
000014e0  65 78 74 65 6e 73 69 6f  6e 20 2e 7a 69 70 20 69  |extension .zip i|
000014f0  73 20 61 64 64 65 64 2e  20 20 49 66 20 20 74 68  |s added.  If  th|
00001500  65 20 20 6e 61 6d 65 20  20 61 6c 72 65 61 64 79  |e  name  already|
00001510  0a 20 20 20 20 20 20 20  63 6f 6e 74 61 69 6e 73  |.       contains|
00001520  09 20 61 6e 20 65 78 74  65 6e 73 69 6f 6e 20 6f  |. an extension o|
00001530  74 68 65 72 20 74 68 61  6e 20 2e 7a 69 70 20 74  |ther than .zip t|
00001540  68 65 20 65 78 69 73 74  69 6e 67 20 65 78 74 65  |he existing exte|
00001550  6e 2d 0a 20 20 20 20 20  20 20 73 69 6f 6e 20 69  |n-.       sion i|
00001560  73 20 6b 65 70 74 20 75  6e 63 68 61 6e 67 65 64  |s kept unchanged|
00001570  2e 0a 0a 4f 50 54 49 4f  4e 53 0a 20 20 20 20 20  |...OPTIONS.     |
00001580  20 20 2d 41 20 20 20 20  20 41 64 6a 75 73 74 20  |  -A     Adjust |
00001590  73 65 6c 66 2d 65 78 74  72 61 63 74 69 6e 67 20  |self-extracting |
000015a0  65 78 65 63 75 74 61 62  6c 65 20 61 72 63 68 69  |executable archi|
000015b0  76 65 2e 20 20 41 20 73  65 6c 66 2d 0a 09 20 20  |ve.  A self-..  |
000015c0  20 20 20 20 65 78 74 72  61 63 74 69 6e 67 20 20  |    extracting  |
000015d0  20 65 78 65 63 75 74 61  62 6c 65 09 61 72 63 68  | executable.arch|
000015e0  69 76 65 09 20 20 69 73  20 20 63 72 65 61 74 65  |ive.  is  create|
000015f0  64 20 20 62 79 0a 09 20  20 20 20 20 20 70 72 65  |d  by..      pre|
00001600  70 65 6e 64 69 6e 67 20  74 68 65 20 53 46 58 20  |pending the SFX |
00001610  73 74 75 62 20 74 6f 20  61 6e 20 65 78 69 73 74  |stub to an exist|
00001620  69 6e 67 20 61 72 63 68  69 76 65 2e 20 54 68 65  |ing archive. The|
00001630  0a 09 20 20 20 20 20 20  2d 41 20 20 6f 70 74 69  |..      -A  opti|
00001640  6f 6e 20 20 74 65 6c 6c  73 09 20 7a 69 70 20 20  |on  tells. zip  |
00001650  74 6f 20 61 64 6a 75 73  74 20 74 68 65 20 65 6e  |to adjust the en|
00001660  74 72 79 20 6f 66 66 73  65 74 73 0a 09 20 20 20  |try offsets..   |
00001670  20 20 20 73 74 6f 72 65  64 20 69 6e 20 74 68 65  |   stored in the|
00001680  20 61 72 63 68 69 76 65  20 74 6f 09 74 61 6b 65  | archive to.take|
00001690  20 20 69 6e 74 6f 20 20  61 63 63 6f 75 6e 74 20  |  into  account |
000016a0  20 74 68 69 73 0a 09 20  20 20 20 20 20 22 70 72  | this..      "pr|
000016b0  65 61 6d 62 6c 65 22 20  64 61 74 61 2e 0a 0a 20  |eamble" data... |
000016c0  20 20 20 20 20 20 4e 6f  74 65 3a 20 73 65 6c 66  |      Note: self|
000016d0  2d 65 78 74 72 61 63 74  69 6e 67 20 61 72 63 68  |-extracting arch|
000016e0  69 76 65 73 20 66 6f 72  20 74 68 65 20 41 6d 69  |ives for the Ami|
000016f0  67 61 20 61 72 65 20 61  20 73 70 65 63 69 61 6c  |ga are a special|
00001700  0a 20 20 20 20 20 20 20  63 61 73 65 2e 20 20 41  |.       case.  A|
00001710  74 20 70 72 65 73 65 6e  74 2c 20 6f 6e 6c 79 20  |t present, only |
00001720  74 68 65 20 41 6d 69 67  61 20 70 6f 72 74 20 6f  |the Amiga port o|
00001730  66 20 5a 69 70 20 20 69  73 20 20 63 61 70 61 62  |f Zip  is  capab|
00001740  6c 65 0a 20 20 20 20 20  20 20 6f 66 20 61 64 6a  |le.       of adj|
00001750  75 73 74 69 6e 67 20 6f  72 20 75 70 64 61 74 69  |usting or updati|
00001760  6e 67 20 74 68 65 73 65  20 77 69 74 68 6f 75 74  |ng these without|
00001770  20 63 6f 72 72 75 70 74  69 6e 67 20 74 68 65 6d  | corrupting them|
00001780  2e 20 2d 4a 0a 20 20 20  20 20 20 20 63 61 6e 20  |. -J.       can |
00001790  62 65 20 75 73 65 64 20  74 6f 20 72 65 6d 6f 76  |be used to remov|
000017a0  65 20 74 68 65 20 53 46  58 20 73 74 75 62 20 69  |e the SFX stub i|
000017b0  66 20 6f 74 68 65 72 20  20 75 70 64 61 74 65 73  |f other  updates|
000017c0  20 20 6e 65 65 64 0a 20  20 20 20 20 20 20 74 6f  |  need.       to|
000017d0  20 62 65 20 6d 61 64 65  2e 0a 0a 20 20 20 20 20  | be made...     |
000017e0  20 20 2d 62 20 70 61 74  68 0a 09 20 20 20 20 20  |  -b path..     |
000017f0  20 55 73 65 20 20 74 68  65 09 73 70 65 63 69 66  | Use  the.specif|
00001800  69 65 64 20 20 70 61 74  68 09 20 66 6f 72 20 20  |ied  path. for  |
00001810  74 68 65 20 20 74 65 6d  70 6f 72 61 72 79 20 20  |the  temporary  |
00001820  7a 69 70 0a 09 20 20 20  20 20 20 61 72 63 68 69  |zip..      archi|
00001830  76 65 2e 20 46 6f 72 20  65 78 61 6d 70 6c 65 3a  |ve. For example:|
00001840  0a 0a 09 09 20 20 20 20  20 7a 69 70 20 2d 62 20  |....     zip -b |
00001850  2f 74 6d 70 20 73 74 75  66 66 20 2a 0a 0a 09 20  |/tmp stuff *... |
00001860  20 20 20 20 20 77 69 6c  6c 20 70 75 74 20 74 68  |     will put th|
00001870  65 20 74 65 6d 70 6f 72  61 72 79 20 7a 69 70 20  |e temporary zip |
00001880  61 72 63 68 69 76 65 20  69 6e 20 74 68 65 20 64  |archive in the d|
00001890  69 72 65 63 74 6f 72 79  0a 09 20 20 20 20 20 20  |irectory..      |
000018a0  2f 74 6d 70 2c 20 20 63  6f 70 79 69 6e 67 20 6f  |/tmp,  copying o|
000018b0  76 65 72 20 73 74 75 66  66 2e 7a 69 70 20 74 6f  |ver stuff.zip to|
000018c0  20 74 68 65 20 63 75 72  72 65 6e 74 20 64 69 72  | the current dir|
000018d0  65 63 2d 0a 09 20 20 20  20 20 20 74 6f 72 79 20  |ec-..      tory |
000018e0  77 68 65 6e 20 64 6f 6e  65 2e 20 54 68 69 73 20  |when done. This |
000018f0  6f 70 74 69 6f 6e 20 20  69 73 20 20 6f 6e 6c 79  |option  is  only|
00001900  20 20 75 73 65 66 75 6c  20 20 77 68 65 6e 0a 09  |  useful  when..|
00001910  20 20 20 20 20 20 75 70  64 61 74 69 6e 67 09 61  |      updating.a|
00001920  6e 20 20 65 78 69 73 74  69 6e 67 20 61 72 63 68  |n  existing arch|
00001930  69 76 65 2c 20 61 6e 64  20 74 68 65 20 66 69 6c  |ive, and the fil|
00001940  65 20 73 79 73 74 65 6d  0a 09 20 20 20 20 20 20  |e system..      |
00001950  63 6f 6e 74 61 69 6e 69  6e 67 20 74 68 69 73 20  |containing this |
00001960  6f 6c 64 20 61 72 63 68  69 76 65 20 64 6f 65 73  |old archive does|
00001970  09 6e 6f 74 20 20 68 61  76 65 20 20 65 6e 6f 75  |.not  have  enou|
00001980  67 68 0a 09 20 20 20 20  20 20 73 70 61 63 65 20  |gh..      space |
00001990  74 6f 20 68 6f 6c 64 20  62 6f 74 68 20 6f 6c 64  |to hold both old|
000019a0  20 61 6e 64 20 6e 65 77  20 61 72 63 68 69 76 65  | and new archive|
000019b0  73 20 61 74 20 74 68 65  20 73 61 6d 65 0a 09 20  |s at the same.. |
000019c0  20 20 20 20 20 74 69 6d  65 2e 0a 0a 20 20 20 20  |     time...    |
000019d0  20 20 20 2d 63 20 20 20  20 20 41 64 64 20 6f 6e  |   -c     Add on|
000019e0  65 2d 6c 69 6e 65 20 63  6f 6d 6d 65 6e 74 73 20  |e-line comments |
000019f0  66 6f 72 20 65 61 63 68  20 66 69 6c 65 2e 20 20  |for each file.  |
00001a00  20 46 69 6c 65 20 20 6f  70 65 72 61 2d 0a 09 20  | File  opera-.. |
00001a10  20 20 20 20 20 74 69 6f  6e 73 20 20 28 61 64 64  |     tions  (add|
00001a20  69 6e 67 2c 20 20 75 70  64 61 74 69 6e 67 29 20  |ing,  updating) |
00001a30  20 61 72 65 20 64 6f 6e  65 20 66 69 72 73 74 2c  | are done first,|
00001a40  20 61 6e 64 20 74 68 65  0a 09 20 20 20 20 20 20  | and the..      |
00001a50  75 73 65 72 20 69 73 20  74 68 65 6e 20 70 72 6f  |user is then pro|
00001a60  6d 70 74 65 64 20 66 6f  72 20 61 20 20 6f 6e 65  |mpted for a  one|
00001a70  2d 6c 69 6e 65 20 20 63  6f 6d 6d 65 6e 74 20 20  |-line  comment  |
00001a80  66 6f 72 0a 09 20 20 20  20 20 20 65 61 63 68 20  |for..      each |
00001a90  20 66 69 6c 65 2e 20 20  20 45 6e 74 65 72 20 74  | file.   Enter t|
00001aa0  68 65 20 63 6f 6d 6d 65  6e 74 20 66 6f 6c 6c 6f  |he comment follo|
00001ab0  77 65 64 20 62 79 20 72  65 74 75 72 6e 2c 0a 09  |wed by return,..|
00001ac0  20 20 20 20 20 20 6f 72  20 6a 75 73 74 20 72 65  |      or just re|
00001ad0  74 75 72 6e 20 66 6f 72  20 6e 6f 20 63 6f 6d 6d  |turn for no comm|
00001ae0  65 6e 74 2e 0a 0a 20 20  20 20 20 20 20 2d 64 20  |ent...       -d |
00001af0  20 20 20 20 52 65 6d 6f  76 65 20 28 64 65 6c 65  |    Remove (dele|
00001b00  74 65 29 20 65 6e 74 72  69 65 73 20 66 72 6f 6d  |te) entries from|
00001b10  20 61 20 20 7a 69 70 20  20 61 72 63 68 69 76 65  | a  zip  archive|
00001b20  2e 20 20 20 46 6f 72 0a  0a 49 6e 66 6f 2d 5a 49  |.   For..Info-ZI|
00001b30  50 09 20 20 20 20 20 20  20 32 32 20 4a 75 6e 65  |P.       22 June|
00001b40  20 31 39 39 37 20 28 76  32 2e 32 29 09 09 09 33  | 1997 (v2.2)...3|
00001b50  0a 0a 5a 49 50 28 31 4c  29 09 09 09 09 09 09 09  |..ZIP(1L).......|
00001b60  20 20 5a 49 50 28 31 4c  29 0a 0a 09 20 20 20 20  |  ZIP(1L)...    |
00001b70  20 20 65 78 61 6d 70 6c  65 3a 0a 0a 09 09 20 20  |  example:....  |
00001b80  20 20 20 7a 69 70 20 2d  64 20 66 6f 6f 20 66 6f  |   zip -d foo fo|
00001b90  6f 2f 74 6f 6d 2f 6a 75  6e 6b 20 66 6f 6f 2f 68  |o/tom/junk foo/h|
00001ba0  61 72 72 79 2f 5c 2a 20  5c 2a 2e 6f 0a 0a 09 20  |arry/\* \*.o... |
00001bb0  20 20 20 20 20 77 69 6c  6c 20 20 72 65 6d 6f 76  |     will  remov|
00001bc0  65 20 20 74 68 65 09 20  65 6e 74 72 79 09 66 6f  |e  the. entry.fo|
00001bd0  6f 2f 74 6f 6d 2f 6a 75  6e 6b 2c 20 20 61 6c 6c  |o/tom/junk,  all|
00001be0  20 6f 66 20 74 68 65 0a  09 20 20 20 20 20 20 66  | of the..      f|
00001bf0  69 6c 65 73 20 74 68 61  74 20 73 74 61 72 74 20  |iles that start |
00001c00  77 69 74 68 20 66 6f 6f  2f 68 61 72 72 79 2f 2c  |with foo/harry/,|
00001c10  20 61 6e 64 20 20 61 6c  6c 20 20 6f 66 20 20 74  | and  all  of  t|
00001c20  68 65 0a 09 20 20 20 20  20 20 66 69 6c 65 73 20  |he..      files |
00001c30  20 74 68 61 74 20 20 65  6e 64 09 77 69 74 68 20  | that  end.with |
00001c40  2e 6f 20 28 69 6e 20 61  6e 79 20 70 61 74 68 29  |.o (in any path)|
00001c50  2e 09 4e 6f 74 65 20 74  68 61 74 0a 09 20 20 20  |..Note that..   |
00001c60  20 20 20 73 68 65 6c 6c  20 70 61 74 68 6e 61 6d  |   shell pathnam|
00001c70  65 20 65 78 70 61 6e 73  69 6f 6e 20 68 61 73 20  |e expansion has |
00001c80  20 62 65 65 6e 20 20 69  6e 68 69 62 69 74 65 64  | been  inhibited|
00001c90  20 20 77 69 74 68 0a 09  20 20 20 20 20 20 62 61  |  with..      ba|
00001ca0  63 6b 73 6c 61 73 68 65  73 2c 20 20 73 6f 09 74  |ckslashes,  so.t|
00001cb0  68 61 74 20 20 7a 69 70  20 20 63 61 6e 20 73 65  |hat  zip  can se|
00001cc0  65 20 74 68 65 20 61 73  74 65 72 69 73 6b 73 2c  |e the asterisks,|
00001cd0  0a 09 20 20 20 20 20 20  65 6e 61 62 6c 69 6e 67  |..      enabling|
00001ce0  20 7a 69 70 20 74 6f 20  6d 61 74 63 68 20 6f 6e  | zip to match on|
00001cf0  20 74 68 65 20 63 6f 6e  74 65 6e 74 73 20 20 6f  | the contents  o|
00001d00  66 09 20 74 68 65 20 20  7a 69 70 0a 09 20 20 20  |f. the  zip..   |
00001d10  20 20 20 61 72 63 68 69  76 65 20 20 69 6e 73 74  |   archive  inst|
00001d20  65 61 64 09 6f 66 20 20  74 68 65 09 20 63 6f 6e  |ead.of  the. con|
00001d30  74 65 6e 74 73 20 20 6f  66 20 74 68 65 20 63 75  |tents  of the cu|
00001d40  72 72 65 6e 74 0a 09 20  20 20 20 20 20 64 69 72  |rrent..      dir|
00001d50  65 63 74 6f 72 79 2e 0a  0a 09 20 20 20 20 20 20  |ectory....      |
00001d60  55 6e 64 65 72 20 4d 53  44 4f 53 2c 20 2d 64 20  |Under MSDOS, -d |
00001d70  69 73 20 63 61 73 65 20  73 65 6e 73 69 74 69 76  |is case sensitiv|
00001d80  65 20 77 68 65 6e 20 20  69 74 20 20 6d 61 74 63  |e when  it  matc|
00001d90  68 65 73 0a 09 20 20 20  20 20 20 6e 61 6d 65 73  |hes..      names|
00001da0  20 20 69 6e 20 74 68 65  20 7a 69 70 20 61 72 63  |  in the zip arc|
00001db0  68 69 76 65 2e 20 20 54  68 69 73 20 72 65 71 75  |hive.  This requ|
00001dc0  69 72 65 73 20 74 68 61  74 20 66 69 6c 65 0a 09  |ires that file..|
00001dd0  20 20 20 20 20 20 6e 61  6d 65 73 20 62 65 20 65  |      names be e|
00001de0  6e 74 65 72 65 64 20 69  6e 20 75 70 70 65 72 20  |ntered in upper |
00001df0  63 61 73 65 20 69 66 20  74 68 65 79 20 77 65 72  |case if they wer|
00001e00  65 20 20 7a 69 70 70 65  64 0a 09 20 20 20 20 20  |e  zipped..     |
00001e10  20 62 79 20 50 4b 5a 49  50 20 6f 6e 20 61 6e 20  | by PKZIP on an |
00001e20  4d 53 44 4f 53 20 73 79  73 74 65 6d 2e 0a 0a 20  |MSDOS system... |
00001e30  20 20 20 20 20 20 2d 44  20 20 20 20 20 44 6f 20  |      -D     Do |
00001e40  6e 6f 74 20 63 72 65 61  74 65 20 65 6e 74 72 69  |not create entri|
00001e50  65 73 20 69 6e 20 74 68  65 20 7a 69 70 20 61 72  |es in the zip ar|
00001e60  63 68 69 76 65 20 66 6f  72 20 64 69 72 65 63 2d  |chive for direc-|
00001e70  0a 09 20 20 20 20 20 20  74 6f 72 69 65 73 2e 20  |..      tories. |
00001e80  20 44 69 72 65 63 74 6f  72 79 20 65 6e 74 72 69  | Directory entri|
00001e90  65 73 20 61 72 65 20 63  72 65 61 74 65 64 20 20  |es are created  |
00001ea0  62 79 20 20 64 65 66 61  75 6c 74 0a 09 20 20 20  |by  default..   |
00001eb0  20 20 20 73 6f 20 20 74  68 61 74 09 74 68 65 69  |   so  that.thei|
00001ec0  72 20 20 61 74 74 72 69  62 75 74 65 73 20 63 61  |r  attributes ca|
00001ed0  6e 20 62 65 20 73 61 76  65 64 20 69 6e 20 74 68  |n be saved in th|
00001ee0  65 20 7a 69 70 0a 09 20  20 20 20 20 20 61 72 63  |e zip..      arc|
00001ef0  68 69 76 65 2e 09 54 68  65 20 65 6e 76 69 72 6f  |hive..The enviro|
00001f00  6e 6d 65 6e 74 20 76 61  72 69 61 62 6c 65 20 20  |nment variable  |
00001f10  5a 49 50 4f 50 54 20 20  63 61 6e 20 20 62 65 0a  |ZIPOPT  can  be.|
00001f20  09 20 20 20 20 20 20 75  73 65 64 20 20 74 6f 09  |.      used  to.|
00001f30  63 68 61 6e 67 65 09 74  68 65 20 20 64 65 66 61  |change.the  defa|
00001f40  75 6c 74 20 6f 70 74 69  6f 6e 73 2e 20 46 6f 72  |ult options. For|
00001f50  20 65 78 61 6d 70 6c 65  0a 09 20 20 20 20 20 20  | example..      |
00001f60  75 6e 64 65 72 20 55 6e  69 78 20 77 69 74 68 20  |under Unix with |
00001f70  73 68 3a 0a 0a 09 09 20  20 20 20 20 5a 49 50 4f  |sh:....     ZIPO|
00001f80  50 54 3d 22 2d 44 22 3b  20 65 78 70 6f 72 74 20  |PT="-D"; export |
00001f90  5a 49 50 4f 50 54 0a 0a  09 20 20 20 20 20 20 28  |ZIPOPT...      (|
00001fa0  54 68 65 20 76 61 72 69  61 62 6c 65 20 5a 49 50  |The variable ZIP|
00001fb0  4f 50 54 20 63 61 6e 20  62 65 20 20 75 73 65 64  |OPT can be  used|
00001fc0  09 20 66 6f 72 20 20 61  6e 79 20 20 6f 70 74 69  |. for  any  opti|
00001fd0  6f 6e 0a 09 20 20 20 20  20 20 65 78 63 65 70 74  |on..      except|
00001fe0  20 20 2d 69 20 61 6e 64  20 2d 78 20 61 6e 64 20  |  -i and -x and |
00001ff0  63 61 6e 20 69 6e 63 6c  75 64 65 20 73 65 76 65  |can include seve|
00002000  72 61 6c 20 6f 70 74 69  6f 6e 73 2e 29 0a 09 20  |ral options.).. |
00002010  20 20 20 20 20 54 68 65  20 6f 70 74 69 6f 6e 20  |     The option |
00002020  2d 44 20 69 73 20 61 20  73 68 6f 72 74 68 61 6e  |-D is a shorthan|
00002030  64 20 66 6f 72 20 2d 78  20 20 22 2a 2f 22 09 20  |d for -x  "*/". |
00002040  62 75 74 20 20 74 68 65  0a 09 20 20 20 20 20 20  |but  the..      |
00002050  6c 61 74 74 65 72 20 63  61 6e 6e 6f 74 20 62 65  |latter cannot be|
00002060  20 73 65 74 20 61 73 20  64 65 66 61 75 6c 74 20  | set as default |
00002070  69 6e 20 74 68 65 20 5a  49 50 4f 50 54 20 65 6e  |in the ZIPOPT en|
00002080  76 69 2d 0a 09 20 20 20  20 20 20 72 6f 6e 6d 65  |vi-..      ronme|
00002090  6e 74 20 76 61 72 69 61  62 6c 65 2e 0a 0a 20 20  |nt variable...  |
000020a0  20 20 20 20 20 2d 65 20  20 20 20 20 45 6e 63 72  |     -e     Encr|
000020b0  79 70 74 20 74 68 65 20  63 6f 6e 74 65 6e 74 73  |ypt the contents|
000020c0  20 6f 66 20 74 68 65 20  20 7a 69 70 09 61 72 63  | of the  zip.arc|
000020d0  68 69 76 65 09 20 75 73  69 6e 67 09 61 0a 09 20  |hive. using.a.. |
000020e0  20 20 20 20 20 70 61 73  73 77 6f 72 64 09 77 68  |     password.wh|
000020f0  69 63 68 20 20 69 73 20  20 65 6e 74 65 72 65 64  |ich  is  entered|
00002100  20 20 6f 6e 09 74 68 65  20 20 74 65 72 6d 69 6e  |  on.the  termin|
00002110  61 6c 20 20 69 6e 0a 09  20 20 20 20 20 20 72 65  |al  in..      re|
00002120  73 70 6f 6e 73 65 20 74  6f 20 61 20 70 72 6f 6d  |sponse to a prom|
00002130  70 74 20 28 74 68 69 73  20 77 69 6c 6c 20 6e 6f  |pt (this will no|
00002140  74 20 62 65 20 20 65 63  68 6f 65 64 3b 20 20 69  |t be  echoed;  i|
00002150  66 0a 09 20 20 20 20 20  20 73 74 61 6e 64 61 72  |f..      standar|
00002160  64 09 65 72 72 6f 72 20  69 73 20 6e 6f 74 20 61  |d.error is not a|
00002170  20 74 74 79 2c 20 7a 69  70 20 77 69 6c 6c 20 65  | tty, zip will e|
00002180  78 69 74 20 77 69 74 68  20 61 6e 0a 09 20 20 20  |xit with an..   |
00002190  20 20 20 65 72 72 6f 72  29 2e 20 20 54 68 65 20  |   error).  The |
000021a0  70 61 73 73 77 6f 72 64  20 70 72 6f 6d 70 74 20  |password prompt |
000021b0  69 73 20 20 72 65 70 65  61 74 65 64 09 20 74 6f  |is  repeated. to|
000021c0  20 20 73 61 76 65 0a 09  20 20 20 20 20 20 74 68  |  save..      th|
000021d0  65 20 75 73 65 72 20 66  72 6f 6d 20 74 79 70 69  |e user from typi|
000021e0  6e 67 20 65 72 72 6f 72  73 2e 0a 0a 20 20 20 20  |ng errors...    |
000021f0  20 20 20 2d 66 20 20 20  20 20 52 65 70 6c 61 63  |   -f     Replac|
00002200  65 20 20 28 66 72 65 73  68 65 6e 29 20 20 61 6e  |e  (freshen)  an|
00002210  20 20 65 78 69 73 74 69  6e 67 09 65 6e 74 72 79  |  existing.entry|
00002220  20 20 69 6e 20 74 68 65  20 7a 69 70 0a 09 20 20  |  in the zip..  |
00002230  20 20 20 20 61 72 63 68  69 76 65 20 6f 6e 6c 79  |    archive only|
00002240  20 69 66 20 69 74 20 68  61 73 20 62 65 65 6e 20  | if it has been |
00002250  6d 6f 64 69 66 69 65 64  20 6d 6f 72 65 09 20 72  |modified more. r|
00002260  65 63 65 6e 74 6c 79 0a  09 20 20 20 20 20 20 74  |ecently..      t|
00002270  68 61 6e 20 74 68 65 20  76 65 72 73 69 6f 6e 20  |han the version |
00002280  61 6c 72 65 61 64 79 20  69 6e 20 74 68 65 20 7a  |already in the z|
00002290  69 70 20 61 72 63 68 69  76 65 3b 20 75 6e 6c 69  |ip archive; unli|
000022a0  6b 65 0a 09 20 20 20 20  20 20 74 68 65 20 75 70  |ke..      the up|
000022b0  64 61 74 65 20 6f 70 74  69 6f 6e 20 28 2d 75 29  |date option (-u)|
000022c0  20 74 68 69 73 20 77 69  6c 6c 20 6e 6f 74 20 61  | this will not a|
000022d0  64 64 20 66 69 6c 65 73  20 74 68 61 74 0a 09 20  |dd files that.. |
000022e0  20 20 20 20 20 61 72 65  20 6e 6f 74 20 61 6c 72  |     are not alr|
000022f0  65 61 64 79 20 69 6e 20  74 68 65 20 7a 69 70 20  |eady in the zip |
00002300  61 72 63 68 69 76 65 2e  20 20 46 6f 72 20 65 78  |archive.  For ex|
00002310  61 6d 70 6c 65 3a 0a 0a  09 09 20 20 20 20 20 7a  |ample:....     z|
00002320  69 70 20 2d 66 20 66 6f  6f 0a 0a 09 20 20 20 20  |ip -f foo...    |
00002330  20 20 54 68 69 73 20 20  63 6f 6d 6d 61 6e 64 20  |  This  command |
00002340  73 68 6f 75 6c 64 20 62  65 20 72 75 6e 20 66 72  |should be run fr|
00002350  6f 6d 20 74 68 65 20 73  61 6d 65 20 64 69 72 65  |om the same dire|
00002360  63 74 6f 72 79 0a 09 20  20 20 20 20 20 66 72 6f  |ctory..      fro|
00002370  6d 20 77 68 69 63 68 20  74 68 65 20 6f 72 69 67  |m which the orig|
00002380  69 6e 61 6c 20 7a 69 70  20 63 6f 6d 6d 61 6e 64  |inal zip command|
00002390  20 77 61 73 20 72 75 6e  2c 20 20 73 69 6e 63 65  | was run,  since|
000023a0  0a 09 20 20 20 20 20 20  70 61 74 68 73 20 73 74  |..      paths st|
000023b0  6f 72 65 64 20 69 6e 20  7a 69 70 20 61 72 63 68  |ored in zip arch|
000023c0  69 76 65 73 20 61 72 65  20 61 6c 77 61 79 73 20  |ives are always |
000023d0  72 65 6c 61 74 69 76 65  2e 0a 0a 09 20 20 20 20  |relative....    |
000023e0  20 20 4e 6f 74 65 20 20  74 68 61 74 20 20 74 68  |  Note  that  th|
000023f0  65 20 20 74 69 6d 65 7a  6f 6e 65 09 20 65 6e 76  |e  timezone. env|
00002400  69 72 6f 6e 6d 65 6e 74  20 20 76 61 72 69 61 62  |ironment  variab|
00002410  6c 65 20 54 5a 0a 09 20  20 20 20 20 20 73 68 6f  |le TZ..      sho|
00002420  75 6c 64 20 62 65 20 73  65 74 20 61 63 63 6f 72  |uld be set accor|
00002430  64 69 6e 67 20 74 6f 20  74 68 65 20 20 6c 6f 63  |ding to the  loc|
00002440  61 6c 20 20 74 69 6d 65  7a 6f 6e 65 20 20 69 6e  |al  timezone  in|
00002450  0a 0a 49 6e 66 6f 2d 5a  49 50 09 20 20 20 20 20  |..Info-ZIP.     |
00002460  20 20 32 32 20 4a 75 6e  65 20 31 39 39 37 20 28  |  22 June 1997 (|
00002470  76 32 2e 32 29 09 09 09  34 0a 0a 5a 49 50 28 31  |v2.2)...4..ZIP(1|
00002480  4c 29 09 09 09 09 09 09  09 20 20 5a 49 50 28 31  |L).......  ZIP(1|
00002490  4c 29 0a 0a 09 20 20 20  20 20 20 6f 72 64 65 72  |L)...      order|
000024a0  20 20 66 6f 72 20 20 74  68 65 20 2d 66 20 2c 20  |  for  the -f , |
000024b0  2d 75 20 61 6e 64 20 2d  6f 20 6f 70 74 69 6f 6e  |-u and -o option|
000024c0  73 20 74 6f 20 77 6f 72  6b 20 63 6f 72 2d 0a 09  |s to work cor-..|
000024d0  20 20 20 20 20 20 72 65  63 74 6c 79 2e 0a 0a 09  |      rectly....|
000024e0  20 20 20 20 20 20 54 68  65 20 72 65 61 73 6f 6e  |      The reason|
000024f0  73 20 62 65 68 69 6e 64  20 74 68 69 73 20 20 61  |s behind this  a|
00002500  72 65 20 20 73 6f 6d 65  77 68 61 74 20 20 73 75  |re  somewhat  su|
00002510  62 74 6c 65 20 20 62 75  74 0a 09 20 20 20 20 20  |btle  but..     |
00002520  20 68 61 76 65 20 20 74  6f 09 64 6f 20 77 69 74  | have  to.do wit|
00002530  68 20 74 68 65 20 64 69  66 66 65 72 65 6e 63 65  |h the difference|
00002540  73 20 62 65 74 77 65 65  6e 20 74 68 65 20 55 6e  |s between the Un|
00002550  69 78 2d 0a 09 20 20 20  20 20 20 66 6f 72 6d 61  |ix-..      forma|
00002560  74 20 66 69 6c 65 20 74  69 6d 65 73 20 28 61 6c  |t file times (al|
00002570  77 61 79 73 20 69 6e 20  47 4d 54 29 20 61 6e 64  |ways in GMT) and|
00002580  20 6d 6f 73 74 20 20 6f  66 20 20 74 68 65 0a 09  | most  of  the..|
00002590  20 20 20 20 20 20 6f 74  68 65 72 20 6f 70 65 72  |      other oper|
000025a0  61 74 69 6e 67 20 73 79  73 74 65 6d 73 20 28 61  |ating systems (a|
000025b0  6c 77 61 79 73 20 6c 6f  63 61 6c 20 74 69 6d 65  |lways local time|
000025c0  29 20 61 6e 64 20 74 68  65 0a 09 20 20 20 20 20  |) and the..     |
000025d0  20 6e 65 63 65 73 73 69  74 79 20 74 6f 20 63 6f  | necessity to co|
000025e0  6d 70 61 72 65 20 74 68  65 20 74 77 6f 2e 20 20  |mpare the two.  |
000025f0  41 20 74 79 70 69 63 61  6c 09 54 5a 20 20 76 61  |A typical.TZ  va|
00002600  6c 75 65 0a 09 20 20 20  20 20 20 69 73 20 20 60  |lue..      is  `|
00002610  60 4d 45 54 2d 31 4d 45  53 54 27 27 09 20 28 4d  |`MET-1MEST''. (M|
00002620  69 64 64 6c 65 20 45 75  72 6f 70 65 61 6e 20 74  |iddle European t|
00002630  69 6d 65 20 77 69 74 68  20 61 75 74 6f 2d 0a 09  |ime with auto-..|
00002640  20 20 20 20 20 20 6d 61  74 69 63 20 61 64 6a 75  |      matic adju|
00002650  73 74 6d 65 6e 74 09 66  6f 72 20 20 60 60 73 75  |stment.for  ``su|
00002660  6d 6d 65 72 74 69 6d 65  27 27 20 20 6f 72 09 20  |mmertime''  or. |
00002670  44 61 79 6c 69 67 68 74  0a 09 20 20 20 20 20 20  |Daylight..      |
00002680  53 61 76 69 6e 67 73 20  54 69 6d 65 29 2e 0a 0a  |Savings Time)...|
00002690  20 20 20 20 20 20 20 2d  46 20 20 20 20 20 46 69  |       -F     Fi|
000026a0  78 20 20 74 68 65 09 7a  69 70 20 20 61 72 63 68  |x  the.zip  arch|
000026b0  69 76 65 2e 20 20 54 68  69 73 20 6f 70 74 69 6f  |ive.  This optio|
000026c0  6e 20 63 61 6e 20 62 65  20 75 73 65 64 20 69 66  |n can be used if|
000026d0  0a 09 20 20 20 20 20 20  73 6f 6d 65 20 70 6f 72  |..      some por|
000026e0  74 69 6f 6e 73 20 6f 66  20 74 68 65 20 61 72 63  |tions of the arc|
000026f0  68 69 76 65 20 61 72 65  20 6d 69 73 73 69 6e 67  |hive are missing|
00002700  2e 20 49 74 20 69 73 20  6e 6f 74 0a 09 20 20 20  |. It is not..   |
00002710  20 20 20 67 75 61 72 61  6e 74 65 65 64 20 20 74  |   guaranteed  t|
00002720  6f 20 20 77 6f 72 6b 2c  20 20 73 6f 20 79 6f 75  |o  work,  so you|
00002730  20 4d 55 53 54 20 6d 61  6b 65 20 61 20 62 61 63  | MUST make a bac|
00002740  6b 75 70 20 6f 66 0a 09  20 20 20 20 20 20 74 68  |kup of..      th|
00002750  65 20 6f 72 69 67 69 6e  61 6c 20 61 72 63 68 69  |e original archi|
00002760  76 65 20 66 69 72 73 74  2e 0a 0a 09 20 20 20 20  |ve first....    |
00002770  20 20 57 68 65 6e 20 64  6f 75 62 6c 65 64 20 61  |  When doubled a|
00002780  73 20 69 6e 20 2d 46 46  20 74 68 65 20 63 6f 6d  |s in -FF the com|
00002790  70 72 65 73 73 65 64 20  20 73 69 7a 65 73 20 20  |pressed  sizes  |
000027a0  67 69 76 65 6e 0a 09 20  20 20 20 20 20 69 6e 73  |given..      ins|
000027b0  69 64 65 20 20 74 68 65  20 64 61 6d 61 67 65 64  |ide  the damaged|
000027c0  20 61 72 63 68 69 76 65  20 61 72 65 20 6e 6f 74  | archive are not|
000027d0  20 74 72 75 73 74 65 64  20 61 6e 64 20 7a 69 70  | trusted and zip|
000027e0  0a 09 20 20 20 20 20 20  73 63 61 6e 73 20 66 6f  |..      scans fo|
000027f0  72 20 73 70 65 63 69 61  6c 20 73 69 67 6e 61 74  |r special signat|
00002800  75 72 65 73 20 74 6f 20  69 64 65 6e 74 69 66 79  |ures to identify|
00002810  20 74 68 65 20 6c 69 6d  69 74 73 0a 09 20 20 20  | the limits..   |
00002820  20 20 20 62 65 74 77 65  65 6e 20 20 74 68 65 20  |   between  the |
00002830  61 72 63 68 69 76 65 20  6d 65 6d 62 65 72 73 2e  |archive members.|
00002840  20 54 68 65 20 73 69 6e  67 6c 65 20 2d 46 20 69  | The single -F i|
00002850  73 20 6d 6f 72 65 0a 09  20 20 20 20 20 20 72 65  |s more..      re|
00002860  6c 69 61 62 6c 65 20 69  66 20 74 68 65 20 61 72  |liable if the ar|
00002870  63 68 69 76 65 20 69 73  20 6e 6f 74 20 20 74 6f  |chive is not  to|
00002880  6f 20 20 6d 75 63 68 09  20 64 61 6d 61 67 65 64  |o  much. damaged|
00002890  2c 0a 09 20 20 20 20 20  20 66 6f 72 20 20 65 78  |,..      for  ex|
000028a0  61 6d 70 6c 65 20 20 69  66 20 69 74 20 68 61 73  |ample  if it has|
000028b0  20 6f 6e 6c 79 20 62 65  65 6e 20 74 72 75 6e 63  | only been trunc|
000028c0  61 74 65 64 2c 20 73 6f  20 74 72 79 0a 09 20 20  |ated, so try..  |
000028d0  20 20 20 20 74 68 69 73  20 6f 70 74 69 6f 6e 20  |    this option |
000028e0  66 69 72 73 74 2e 0a 0a  09 20 20 20 20 20 20 4e  |first....      N|
000028f0  65 69 74 68 65 72 20 6f  70 74 69 6f 6e 20 77 69  |either option wi|
00002900  6c 6c 20 72 65 63 6f 76  65 72 20 61 72 63 68 69  |ll recover archi|
00002910  76 65 73 20 74 68 61 74  20 68 61 76 65 20 62 65  |ves that have be|
00002920  65 6e 0a 09 20 20 20 20  20 20 69 6e 63 6f 72 72  |en..      incorr|
00002930  65 63 74 6c 79 20 20 74  72 61 6e 73 66 65 72 72  |ectly  transferr|
00002940  65 64 09 69 6e 20 20 61  73 63 69 69 20 6d 6f 64  |ed.in  ascii mod|
00002950  65 20 69 6e 73 74 65 61  64 20 6f 66 0a 09 20 20  |e instead of..  |
00002960  20 20 20 20 62 69 6e 61  72 79 2e 20 41 66 74 65  |    binary. Afte|
00002970  72 20 74 68 65 20 72 65  70 61 69 72 2c 20 74 68  |r the repair, th|
00002980  65 20 2d 74 09 6f 70 74  69 6f 6e 09 6f 66 20 20  |e -t.option.of  |
00002990  75 6e 7a 69 70 0a 09 20  20 20 20 20 20 6d 61 79  |unzip..      may|
000029a0  20 73 68 6f 77 20 74 68  61 74 20 73 6f 6d 65 20  | show that some |
000029b0  66 69 6c 65 73 20 68 61  76 65 20 61 20 62 61 64  |files have a bad|
000029c0  20 43 52 43 2e 20 53 75  63 68 20 66 69 6c 65 73  | CRC. Such files|
000029d0  0a 09 20 20 20 20 20 20  63 61 6e 6e 6f 74 20 62  |..      cannot b|
000029e0  65 20 72 65 63 6f 76 65  72 65 64 3b 20 79 6f 75  |e recovered; you|
000029f0  20 63 61 6e 20 72 65 6d  6f 76 65 20 74 68 65 6d  | can remove them|
00002a00  09 66 72 6f 6d 20 20 74  68 65 0a 09 20 20 20 20  |.from  the..    |
00002a10  20 20 61 72 63 68 69 76  65 20 75 73 69 6e 67 20  |  archive using |
00002a20  74 68 65 20 2d 64 20 6f  70 74 69 6f 6e 20 6f 66  |the -d option of|
00002a30  20 7a 69 70 2e 0a 0a 20  20 20 20 20 20 20 2d 67  | zip...       -g|
00002a40  20 20 20 20 20 47 72 6f  77 20 28 61 70 70 65 6e  |     Grow (appen|
00002a50  64 20 74 6f 29 20 74 68  65 20 73 70 65 63 69 66  |d to) the specif|
00002a60  69 65 64 20 7a 69 70 20  61 72 63 68 69 76 65 2c  |ied zip archive,|
00002a70  20 69 6e 73 74 65 61 64  0a 09 20 20 20 20 20 20  | instead..      |
00002a80  6f 66 20 63 72 65 61 74  69 6e 67 20 61 20 6e 65  |of creating a ne|
00002a90  77 20 6f 6e 65 2e 20 49  66 20 74 68 69 73 20 6f  |w one. If this o|
00002aa0  70 65 72 61 74 69 6f 6e  20 66 61 69 6c 73 2c 20  |peration fails, |
00002ab0  7a 69 70 0a 09 20 20 20  20 20 20 61 74 74 65 6d  |zip..      attem|
00002ac0  70 74 73 09 74 6f 20 20  72 65 73 74 6f 72 65 20  |pts.to  restore |
00002ad0  20 74 68 65 20 20 61 72  63 68 69 76 65 20 74 6f  | the  archive to|
00002ae0  20 69 74 73 20 6f 72 69  67 69 6e 61 6c 0a 09 20  | its original.. |
00002af0  20 20 20 20 20 73 74 61  74 65 2e 20 49 66 20 74  |     state. If t|
00002b00  68 65 20 72 65 73 74 6f  72 61 74 69 6f 6e 20 66  |he restoration f|
00002b10  61 69 6c 73 2c 20 74 68  65 20 61 72 63 68 69 76  |ails, the archiv|
00002b20  65 20 20 6d 69 67 68 74  0a 09 20 20 20 20 20 20  |e  might..      |
00002b30  62 65 63 6f 6d 65 20 20  63 6f 72 72 75 70 74 65  |become  corrupte|
00002b40  64 2e 20 20 54 68 69 73  09 6f 70 74 69 6f 6e 09  |d.  This.option.|
00002b50  69 73 20 20 69 67 6e 6f  72 65 64 20 20 77 68 65  |is  ignored  whe|
00002b60  6e 0a 09 20 20 20 20 20  20 74 68 65 72 65 27 73  |n..      there's|
00002b70  20 6e 6f 20 65 78 69 73  74 69 6e 67 20 61 72 63  | no existing arc|
00002b80  68 69 76 65 20 6f 72 20  77 68 65 6e 20 20 61 74  |hive or when  at|
00002b90  20 20 6c 65 61 73 74 20  20 6f 6e 65 0a 09 20 20  |  least  one..  |
00002ba0  20 20 20 20 61 72 63 68  69 76 65 20 6d 65 6d 62  |    archive memb|
00002bb0  65 72 20 6d 75 73 74 20  62 65 20 75 70 64 61 74  |er must be updat|
00002bc0  65 64 20 6f 72 20 64 65  6c 65 74 65 64 2e 0a 0a  |ed or deleted...|
00002bd0  20 20 20 20 20 20 20 2d  68 20 20 20 20 20 44 69  |       -h     Di|
00002be0  73 70 6c 61 79 20 74 68  65 20 7a 69 70 20 68 65  |splay the zip he|
00002bf0  6c 70 20 69 6e 66 6f 72  6d 61 74 69 6f 6e 20 28  |lp information (|
00002c00  74 68 69 73 20 61 6c 73  6f 20 61 70 70 65 61 72  |this also appear|
00002c10  73 0a 09 20 20 20 20 20  20 69 66 20 7a 69 70 20  |s..      if zip |
00002c20  69 73 20 72 75 6e 20 77  69 74 68 20 6e 6f 20 61  |is run with no a|
00002c30  72 67 75 6d 65 6e 74 73  29 2e 0a 0a 20 20 20 20  |rguments)...    |
00002c40  20 20 20 2d 69 20 66 69  6c 65 73 0a 09 20 20 20  |   -i files..   |
00002c50  20 20 20 49 6e 63 6c 75  64 65 20 6f 6e 6c 79 20  |   Include only |
00002c60  74 68 65 20 73 70 65 63  69 66 69 65 64 20 66 69  |the specified fi|
00002c70  6c 65 73 2c 20 61 73 20  69 6e 3a 0a 0a 09 09 20  |les, as in:.... |
00002c80  20 20 20 20 7a 69 70 20  2d 72 20 66 6f 6f 20 2e  |    zip -r foo .|
00002c90  20 2d 69 20 5c 2a 2e 63  0a 0a 09 20 20 20 20 20  | -i \*.c...     |
00002ca0  20 77 68 69 63 68 20 77  69 6c 6c 20 69 6e 63 6c  | which will incl|
00002cb0  75 64 65 20 6f 6e 6c 79  20 74 68 65 20 66 69 6c  |ude only the fil|
00002cc0  65 73 20 74 68 61 74 20  65 6e 64 20 69 6e 20 2e  |es that end in .|
00002cd0  63 20 69 6e 0a 09 20 20  20 20 20 20 74 68 65 20  |c in..      the |
00002ce0  63 75 72 72 65 6e 74 20  64 69 72 65 63 74 6f 72  |current director|
00002cf0  79 20 61 6e 64 20 69 74  73 20 73 75 62 64 69 72  |y and its subdir|
00002d00  65 63 74 6f 72 69 65 73  2e 20 28 4e 6f 74 65 0a  |ectories. (Note.|
00002d10  09 20 20 20 20 20 20 66  6f 72 20 50 4b 5a 49 50  |.      for PKZIP|
00002d20  20 75 73 65 72 73 3a 20  74 68 65 20 65 71 75 69  | users: the equi|
00002d30  76 61 6c 65 6e 74 20 63  6f 6d 6d 61 6e 64 20 69  |valent command i|
00002d40  73 0a 0a 09 09 20 20 20  20 20 70 6b 7a 69 70 20  |s....     pkzip |
00002d50  2d 72 50 20 66 6f 6f 20  2a 2e 63 0a 0a 49 6e 66  |-rP foo *.c..Inf|
00002d60  6f 2d 5a 49 50 09 20 20  20 20 20 20 20 32 32 20  |o-ZIP.       22 |
00002d70  4a 75 6e 65 20 31 39 39  37 20 28 76 32 2e 32 29  |June 1997 (v2.2)|
00002d80  09 09 09 35 0a 0a 5a 49  50 28 31 4c 29 09 09 09  |...5..ZIP(1L)...|
00002d90  09 09 09 09 20 20 5a 49  50 28 31 4c 29 0a 0a 09  |....  ZIP(1L)...|
00002da0  20 20 20 20 20 20 50 4b  5a 49 50 20 64 6f 65 73  |      PKZIP does|
00002db0  20 6e 6f 74 20 61 6c 6c  6f 77 20 72 65 63 75 72  | not allow recur|
00002dc0  73 69 6f 6e 20 69 6e 20  64 69 72 65 63 74 6f 72  |sion in director|
00002dd0  69 65 73 20 6f 74 68 65  72 0a 09 20 20 20 20 20  |ies other..     |
00002de0  20 74 68 61 6e 20 20 74  68 65 09 20 63 75 72 72  | than  the. curr|
00002df0  65 6e 74 20 20 6f 6e 65  2e 29 09 20 54 68 65 20  |ent  one.). The |
00002e00  62 61 63 6b 73 6c 61 73  68 20 61 76 6f 69 64 73  |backslash avoids|
00002e10  20 74 68 65 0a 09 20 20  20 20 20 20 73 68 65 6c  | the..      shel|
00002e20  6c 20 20 66 69 6c 65 6e  61 6d 65 20 20 73 75 62  |l  filename  sub|
00002e30  73 74 69 74 75 74 69 6f  6e 2c 20 20 73 6f 20 20  |stitution,  so  |
00002e40  74 68 61 74 09 74 68 65  20 20 6e 61 6d 65 0a 09  |that.the  name..|
00002e50  20 20 20 20 20 20 6d 61  74 63 68 69 6e 67 09 69  |      matching.i|
00002e60  73 20 70 65 72 66 6f 72  6d 65 64 20 62 79 20 7a  |s performed by z|
00002e70  69 70 20 61 74 20 61 6c  6c 20 64 69 72 65 63 74  |ip at all direct|
00002e80  6f 72 79 20 6c 65 76 2d  0a 09 20 20 20 20 20 20  |ory lev-..      |
00002e90  65 6c 73 2e 0a 0a 09 20  20 20 20 20 20 41 6c 73  |els....      Als|
00002ea0  6f 20 70 6f 73 73 69 62  6c 65 3a 0a 0a 09 09 20  |o possible:.... |
00002eb0  20 20 20 20 7a 69 70 20  2d 72 20 66 6f 6f 09 20  |    zip -r foo. |
00002ec0  2e 20 2d 69 40 69 6e 63  6c 75 64 65 2e 6c 73 74  |. -i@include.lst|
00002ed0  0a 0a 09 20 20 20 20 20  20 77 68 69 63 68 20 77  |...      which w|
00002ee0  69 6c 6c 20 6f 6e 6c 79  20 69 6e 63 6c 75 64 65  |ill only include|
00002ef0  20 74 68 65 20 66 69 6c  65 73 09 20 69 6e 20 20  | the files. in  |
00002f00  74 68 65 20 20 63 75 72  72 65 6e 74 0a 09 20 20  |the  current..  |
00002f10  20 20 20 20 64 69 72 65  63 74 6f 72 79 09 20 61  |    directory. a|
00002f20  6e 64 20 20 69 74 73 20  20 73 75 62 64 69 72 65  |nd  its  subdire|
00002f30  63 74 6f 72 69 65 73 20  20 74 68 61 74 20 6d 61  |ctories  that ma|
00002f40  74 63 68 20 74 68 65 0a  09 20 20 20 20 20 20 70  |tch the..      p|
00002f50  61 74 74 65 72 6e 73 20  69 6e 20 74 68 65 20 66  |atterns in the f|
00002f60  69 6c 65 20 69 6e 63 6c  75 64 65 2e 6c 73 74 2e  |ile include.lst.|
00002f70  0a 0a 20 20 20 20 20 20  20 2d 49 20 20 20 20 20  |..       -I     |
00002f80  44 6f 6e 27 74 20 73 63  61 6e 20 74 68 72 6f 75  |Don't scan throu|
00002f90  67 68 20 20 49 6d 61 67  65 09 20 66 69 6c 65 73  |gh  Image. files|
00002fa0  2e 09 20 54 68 69 73 20  20 6f 70 74 69 6f 6e 20  |.. This  option |
00002fb0  20 69 73 0a 09 20 20 20  20 20 20 61 76 61 69 6c  | is..      avail|
00002fc0  61 62 6c 65 09 20 6f 6e  20 20 41 63 6f 72 6e 20  |able. on  Acorn |
00002fd0  20 52 49 53 43 20 20 4f  53 20 6f 6e 6c 79 3b 20  | RISC  OS only; |
00002fe0  77 68 65 6e 20 75 73 65  64 2c 20 7a 69 70 0a 09  |when used, zip..|
00002ff0  20 20 20 20 20 20 77 69  6c 6c 20 6e 6f 74 20 63  |      will not c|
00003000  6f 6e 73 69 64 65 72 20  49 6d 61 67 65 20 66 69  |onsider Image fi|
00003010  6c 65 73 20 28 65 67 2e  20 20 44 4f 53 20 20 70  |les (eg.  DOS  p|
00003020  61 72 74 69 74 69 6f 6e  73 0a 09 20 20 20 20 20  |artitions..     |
00003030  20 6f 72 20 53 70 61 72  6b 20 61 72 63 68 69 76  | or Spark archiv|
00003040  65 73 20 77 68 65 6e 20  53 70 61 72 6b 46 53 20  |es when SparkFS |
00003050  69 73 20 6c 6f 61 64 65  64 29 20 61 73 20 64 69  |is loaded) as di|
00003060  72 65 63 2d 0a 09 20 20  20 20 20 20 74 6f 72 69  |rec-..      tori|
00003070  65 73 20 62 75 74 20 77  69 6c 6c 20 73 74 6f 72  |es but will stor|
00003080  65 20 74 68 65 6d 20 61  73 20 73 69 6e 67 6c 65  |e them as single|
00003090  20 66 69 6c 65 73 2e 0a  0a 09 20 20 20 20 20 20  | files....      |
000030a0  46 6f 72 20 65 78 61 6d  70 6c 65 2c 20 69 66 20  |For example, if |
000030b0  79 6f 75 20 68 61 76 65  20 53 70 61 72 6b 46 53  |you have SparkFS|
000030c0  20 6c 6f 61 64 65 64 2c  20 7a 69 70 70 69 6e 67  | loaded, zipping|
000030d0  09 61 0a 09 20 20 20 20  20 20 53 70 61 72 6b 20  |.a..      Spark |
000030e0  61 72 63 68 69 76 65 20  77 69 6c 6c 20 72 65 73  |archive will res|
000030f0  75 6c 74 20 69 6e 20 61  20 7a 69 70 66 69 6c 65  |ult in a zipfile|
00003100  20 63 6f 6e 74 61 69 6e  69 6e 67 20 61 0a 09 20  | containing a.. |
00003110  20 20 20 20 20 64 69 72  65 63 74 6f 72 79 20 28  |     directory (|
00003120  61 6e 64 20 69 74 73 20  63 6f 6e 74 65 6e 74 29  |and its content)|
00003130  20 20 77 68 69 6c 65 20  20 75 73 69 6e 67 09 20  |  while  using. |
00003140  74 68 65 20 20 27 49 27  0a 09 20 20 20 20 20 20  |the  'I'..      |
00003150  6f 70 74 69 6f 6e 20 20  77 69 6c 6c 20 72 65 73  |option  will res|
00003160  75 6c 74 20 69 6e 20 61  20 7a 69 70 66 69 6c 65  |ult in a zipfile|
00003170  20 63 6f 6e 74 61 69 6e  69 6e 67 20 61 20 53 70  | containing a Sp|
00003180  61 72 6b 0a 09 20 20 20  20 20 20 61 72 63 68 69  |ark..      archi|
00003190  76 65 2e 20 4f 62 76 69  6f 75 73 6c 79 20 74 68  |ve. Obviously th|
000031a0  69 73 20 73 65 63 6f 6e  64 20 63 61 73 65 20 20  |is second case  |
000031b0  77 69 6c 6c 09 20 61 6c  73 6f 20 20 62 65 0a 09  |will. also  be..|
000031c0  20 20 20 20 20 20 6f 62  74 61 69 6e 65 64 09 28  |      obtained.(|
000031d0  77 69 74 68 6f 75 74 20  74 68 65 20 27 49 27 20  |without the 'I' |
000031e0  6f 70 74 69 6f 6e 29 20  69 66 20 53 70 61 72 6b  |option) if Spark|
000031f0  46 53 20 69 73 6e 27 74  0a 09 20 20 20 20 20 20  |FS isn't..      |
00003200  6c 6f 61 64 65 64 2e 0a  0a 20 20 20 20 20 20 20  |loaded...       |
00003210  2d 6a 20 20 20 20 20 53  74 6f 72 65 20 6a 75 73  |-j     Store jus|
00003220  74 20 74 68 65 20 6e 61  6d 65 20 20 6f 66 20 20  |t the name  of  |
00003230  61 20 20 73 61 76 65 64  09 20 66 69 6c 65 20 20  |a  saved. file  |
00003240  28 6a 75 6e 6b 20 20 74  68 65 0a 09 20 20 20 20  |(junk  the..    |
00003250  20 20 70 61 74 68 29 2c  20 20 20 61 6e 64 20 20  |  path),   and  |
00003260  64 6f 09 6e 6f 74 20 20  73 74 6f 72 65 20 20 64  |do.not  store  d|
00003270  69 72 65 63 74 6f 72 79  20 20 6e 61 6d 65 73 2e  |irectory  names.|
00003280  20 20 42 79 0a 09 20 20  20 20 20 20 64 65 66 61  |  By..      defa|
00003290  75 6c 74 2c 20 7a 69 70  20 77 69 6c 6c 20 73 74  |ult, zip will st|
000032a0  6f 72 65 20 74 68 65 20  66 75 6c 6c 20 70 61 74  |ore the full pat|
000032b0  68 20 28 72 65 6c 61 74  69 76 65 20 20 74 6f 0a  |h (relative  to.|
000032c0  09 20 20 20 20 20 20 74  68 65 20 63 75 72 72 65  |.      the curre|
000032d0  6e 74 20 70 61 74 68 29  2e 0a 0a 20 20 20 20 20  |nt path)...     |
000032e0  20 20 2d 4a 20 20 20 20  20 53 74 72 69 70 20 61  |  -J     Strip a|
000032f0  6e 79 20 70 72 65 70 65  6e 64 65 64 20 64 61 74  |ny prepended dat|
00003300  61 20 28 65 2e 67 2e 20  61 20 53 46 58 20 73 74  |a (e.g. a SFX st|
00003310  75 62 29 20 66 72 6f 6d  20 74 68 65 0a 09 20 20  |ub) from the..  |
00003320  20 20 20 20 61 72 63 68  69 76 65 2e 0a 0a 20 20  |    archive...  |
00003330  20 20 20 20 20 2d 6b 20  20 20 20 20 41 74 74 65  |     -k     Atte|
00003340  6d 70 74 20 74 6f 20 63  6f 6e 76 65 72 74 20 74  |mpt to convert t|
00003350  68 65 20 6e 61 6d 65 73  20 61 6e 64 20 70 61 74  |he names and pat|
00003360  68 73 20 20 74 6f 20 20  63 6f 6e 66 6f 72 6d 0a  |hs  to  conform.|
00003370  09 20 20 20 20 20 20 74  6f 20 20 4d 53 44 4f 53  |.      to  MSDOS|
00003380  2c 20 73 74 6f 72 65 20  6f 6e 6c 79 20 74 68 65  |, store only the|
00003390  20 4d 53 44 4f 53 20 61  74 74 72 69 62 75 74 65  | MSDOS attribute|
000033a0  20 28 6a 75 73 74 20 74  68 65 0a 09 20 20 20 20  | (just the..    |
000033b0  20 20 75 73 65 72 20 77  72 69 74 65 20 61 74 74  |  user write att|
000033c0  72 69 62 75 74 65 20 66  72 6f 6d 20 55 4e 49 58  |ribute from UNIX|
000033d0  29 2c 20 61 6e 64 20 6d  61 72 6b 20 74 68 65 20  |), and mark the |
000033e0  65 6e 74 72 79 0a 09 20  20 20 20 20 20 61 73 20  |entry..      as |
000033f0  20 6d 61 64 65 09 75 6e  64 65 72 20 4d 53 44 4f  | made.under MSDO|
00003400  53 20 28 65 76 65 6e 20  74 68 6f 75 67 68 20 69  |S (even though i|
00003410  74 20 77 61 73 20 6e 6f  74 29 3b 20 66 6f 72 0a  |t was not); for.|
00003420  09 20 20 20 20 20 20 63  6f 6d 70 61 74 69 62 69  |.      compatibi|
00003430  6c 69 74 79 20 77 69 74  68 20 50 4b 55 4e 5a 49  |lity with PKUNZI|
00003440  50 20 75 6e 64 65 72 20  4d 53 44 4f 53 20 77 68  |P under MSDOS wh|
00003450  69 63 68 20 63 61 6e 6e  6f 74 0a 09 20 20 20 20  |ich cannot..    |
00003460  20 20 68 61 6e 64 6c 65  20 63 65 72 74 61 69 6e  |  handle certain|
00003470  20 6e 61 6d 65 73 20 73  75 63 68 20 61 73 20 74  | names such as t|
00003480  68 6f 73 65 20 77 69 74  68 20 74 77 6f 20 64 6f  |hose with two do|
00003490  74 73 2e 0a 0a 20 20 20  20 20 20 20 2d 6c 20 20  |ts...       -l  |
000034a0  20 20 20 54 72 61 6e 73  6c 61 74 65 09 20 74 68  |   Translate. th|
000034b0  65 20 20 55 6e 69 78 20  20 65 6e 64 2d 6f 66 2d  |e  Unix  end-of-|
000034c0  6c 69 6e 65 20 63 68 61  72 61 63 74 65 72 20 4c  |line character L|
000034d0  46 20 69 6e 74 6f 0a 09  20 20 20 20 20 20 74 68  |F into..      th|
000034e0  65 20 4d 53 44 4f 53 20  63 6f 6e 76 65 6e 74 69  |e MSDOS conventi|
000034f0  6f 6e 20 43 52 20 4c 46  2e 20 54 68 69 73 20 6f  |on CR LF. This o|
00003500  70 74 69 6f 6e 20 73 68  6f 75 6c 64 20 20 6e 6f  |ption should  no|
00003510  74 0a 09 20 20 20 20 20  20 62 65 20 20 75 73 65  |t..      be  use|
00003520  64 09 6f 6e 20 62 69 6e  61 72 79 20 66 69 6c 65  |d.on binary file|
00003530  73 2e 20 20 54 68 69 73  20 6f 70 74 69 6f 6e 20  |s.  This option |
00003540  63 61 6e 20 62 65 20 75  73 65 64 0a 09 20 20 20  |can be used..   |
00003550  20 20 20 6f 6e 20 55 6e  69 78 20 69 66 20 74 68  |   on Unix if th|
00003560  65 20 7a 69 70 20 66 69  6c 65 20 20 69 73 20 20  |e zip file  is  |
00003570  69 6e 74 65 6e 64 65 64  20 20 66 6f 72 20 20 50  |intended  for  P|
00003580  4b 55 4e 5a 49 50 0a 09  20 20 20 20 20 20 75 6e  |KUNZIP..      un|
00003590  64 65 72 20 20 4d 53 44  4f 53 2e 20 49 66 20 74  |der  MSDOS. If t|
000035a0  68 65 20 69 6e 70 75 74  20 66 69 6c 65 73 20 61  |he input files a|
000035b0  6c 72 65 61 64 79 20 63  6f 6e 74 61 69 6e 20 43  |lready contain C|
000035c0  52 0a 09 20 20 20 20 20  20 4c 46 2c 20 74 68 69  |R..      LF, thi|
000035d0  73 20 6f 70 74 69 6f 6e  20 61 64 64 73 20 61 6e  |s option adds an|
000035e0  20 65 78 74 72 61 20 43  52 2e 20 54 68 69 73 20  | extra CR. This |
000035f0  65 6e 73 75 72 65 20 20  74 68 61 74 0a 09 20 20  |ensure  that..  |
00003600  20 20 20 20 75 6e 7a 69  70 20 2d 61 20 6f 6e 20  |    unzip -a on |
00003610  55 6e 69 78 20 77 69 6c  6c 20 67 65 74 20 62 61  |Unix will get ba|
00003620  63 6b 20 61 6e 20 65 78  61 63 74 20 63 6f 70 79  |ck an exact copy|
00003630  20 6f 66 20 74 68 65 0a  09 20 20 20 20 20 20 6f  | of the..      o|
00003640  72 69 67 69 6e 61 6c 20  66 69 6c 65 2c 20 74 6f  |riginal file, to|
00003650  20 75 6e 64 6f 20 74 68  65 20 65 66 66 65 63 74  | undo the effect|
00003660  20 6f 66 20 7a 69 70 20  2d 6c 2e 0a 0a 20 20 20  | of zip -l...   |
00003670  20 20 20 20 2d 6c 6c 20  20 20 20 54 72 61 6e 73  |    -ll    Trans|
00003680  6c 61 74 65 20 74 68 65  20 4d 53 44 4f 53 20 65  |late the MSDOS e|
00003690  6e 64 2d 6f 66 2d 6c 69  6e 65 20 43 52 20 4c 46  |nd-of-line CR LF|
000036a0  20 69 6e 74 6f 20 55 6e  69 78 20 4c 46 2e 0a 09  | into Unix LF...|
000036b0  20 20 20 20 20 20 54 68  69 73 20 20 6f 70 74 69  |      This  opti|
000036c0  6f 6e 20 20 73 68 6f 75  6c 64 20 20 6e 6f 74 09  |on  should  not.|
000036d0  20 62 65 20 75 73 65 64  20 6f 6e 20 62 69 6e 61  | be used on bina|
000036e0  72 79 20 66 69 6c 65 73  2e 0a 0a 49 6e 66 6f 2d  |ry files...Info-|
000036f0  5a 49 50 09 20 20 20 20  20 20 20 32 32 20 4a 75  |ZIP.       22 Ju|
00003700  6e 65 20 31 39 39 37 20  28 76 32 2e 32 29 09 09  |ne 1997 (v2.2)..|
00003710  09 36 0a 0a 5a 49 50 28  31 4c 29 09 09 09 09 09  |.6..ZIP(1L).....|
00003720  09 09 20 20 5a 49 50 28  31 4c 29 0a 0a 09 20 20  |..  ZIP(1L)...  |
00003730  20 20 20 20 54 68 69 73  20 6f 70 74 69 6f 6e 20  |    This option |
00003740  63 61 6e 20 62 65 20 75  73 65 64 20 6f 6e 20 4d  |can be used on M|
00003750  53 44 4f 53 20 69 66 20  74 68 65 20 7a 69 70 20  |SDOS if the zip |
00003760  66 69 6c 65 20 69 73 0a  09 20 20 20 20 20 20 69  |file is..      i|
00003770  6e 74 65 6e 64 65 64 20  66 6f 72 20 75 6e 7a 69  |ntended for unzi|
00003780  70 20 75 6e 64 65 72 20  55 6e 69 78 2e 0a 0a 20  |p under Unix... |
00003790  20 20 20 20 20 20 2d 4c  20 20 20 20 20 44 69 73  |      -L     Dis|
000037a0  70 6c 61 79 20 74 68 65  20 7a 69 70 20 6c 69 63  |play the zip lic|
000037b0  65 6e 73 65 2e 0a 0a 20  20 20 20 20 20 20 2d 6d  |ense...       -m|
000037c0  20 20 20 20 20 4d 6f 76  65 20 20 74 68 65 09 20  |     Move  the. |
000037d0  73 70 65 63 69 66 69 65  64 20 20 66 69 6c 65 73  |specified  files|
000037e0  20 20 69 6e 74 6f 09 20  74 68 65 20 7a 69 70 20  |  into. the zip |
000037f0  61 72 63 68 69 76 65 3b  0a 09 20 20 20 20 20 20  |archive;..      |
00003800  61 63 74 75 61 6c 6c 79  2c 20 74 68 69 73 20 64  |actually, this d|
00003810  65 6c 65 74 65 73 20 74  68 65 20 74 61 72 67 65  |eletes the targe|
00003820  74 20 64 69 72 65 63 74  6f 72 69 65 73 2f 66 69  |t directories/fi|
00003830  6c 65 73 0a 09 20 20 20  20 20 20 61 66 74 65 72  |les..      after|
00003840  20 6d 61 6b 69 6e 67 20  74 68 65 20 73 70 65 63  | making the spec|
00003850  69 66 69 65 64 20 7a 69  70 20 61 72 63 68 69 76  |ified zip archiv|
00003860  65 2e 20 49 66 20 61 20  64 69 72 65 63 2d 0a 09  |e. If a direc-..|
00003870  20 20 20 20 20 20 74 6f  72 79 20 62 65 63 6f 6d  |      tory becom|
00003880  65 73 20 65 6d 70 74 79  20 61 66 74 65 72 20 72  |es empty after r|
00003890  65 6d 6f 76 61 6c 20 6f  66 20 74 68 65 20 66 69  |emoval of the fi|
000038a0  6c 65 73 2c 20 20 74 68  65 0a 09 20 20 20 20 20  |les,  the..     |
000038b0  20 64 69 72 65 63 74 6f  72 79 09 20 69 73 20 20  | directory. is  |
000038c0  61 6c 73 6f 20 20 72 65  6d 6f 76 65 64 2e 20 4e  |also  removed. N|
000038d0  6f 20 64 65 6c 65 74 69  6f 6e 73 20 61 72 65 20  |o deletions are |
000038e0  64 6f 6e 65 0a 09 20 20  20 20 20 20 75 6e 74 69  |done..      unti|
000038f0  6c 20 7a 69 70 20 68 61  73 20 63 72 65 61 74 65  |l zip has create|
00003900  64 20 74 68 65 09 20 61  72 63 68 69 76 65 20 20  |d the. archive  |
00003910  77 69 74 68 6f 75 74 20  20 65 72 72 6f 72 2e 0a  |without  error..|
00003920  09 20 20 20 20 20 20 54  68 69 73 20 20 69 73 09  |.      This  is.|
00003930  75 73 65 66 75 6c 09 66  6f 72 20 63 6f 6e 73 65  |useful.for conse|
00003940  72 76 69 6e 67 20 64 69  73 6b 20 73 70 61 63 65  |rving disk space|
00003950  2c 20 62 75 74 20 69 73  0a 09 20 20 20 20 20 20  |, but is..      |
00003960  70 6f 74 65 6e 74 69 61  6c 6c 79 20 64 61 6e 67  |potentially dang|
00003970  65 72 6f 75 73 20 73 6f  20 69 74 20 69 73 20 72  |erous so it is r|
00003980  65 63 6f 6d 6d 65 6e 64  65 64 20 20 74 6f 20 20  |ecommended  to  |
00003990  75 73 65 0a 09 20 20 20  20 20 20 69 74 20 20 69  |use..      it  i|
000039a0  6e 20 20 63 6f 6d 62 69  6e 61 74 69 6f 6e 20 20  |n  combination  |
000039b0  77 69 74 68 09 20 2d 54  20 20 74 6f 09 20 74 65  |with. -T  to. te|
000039c0  73 74 20 74 68 65 20 61  72 63 68 69 76 65 0a 09  |st the archive..|
000039d0  20 20 20 20 20 20 62 65  66 6f 72 65 20 72 65 6d  |      before rem|
000039e0  6f 76 69 6e 67 20 61 6c  6c 20 69 6e 70 75 74 20  |oving all input |
000039f0  66 69 6c 65 73 2e 0a 0a  20 20 20 20 20 20 20 2d  |files...       -|
00003a00  6e 20 73 75 66 66 69 78  65 73 0a 09 20 20 20 20  |n suffixes..    |
00003a10  20 20 44 6f 20 6e 6f 74  20 61 74 74 65 6d 70 74  |  Do not attempt|
00003a20  20 74 6f 20 63 6f 6d 70  72 65 73 73 20 20 66 69  | to compress  fi|
00003a30  6c 65 73 09 20 6e 61 6d  65 64 09 77 69 74 68 20  |les. named.with |
00003a40  20 74 68 65 0a 09 20 20  20 20 20 20 67 69 76 65  | the..      give|
00003a50  6e 20 20 73 75 66 66 69  78 65 73 2e 09 20 53 75  |n  suffixes.. Su|
00003a60  63 68 20 66 69 6c 65 73  20 61 72 65 20 73 69 6d  |ch files are sim|
00003a70  70 6c 79 20 73 74 6f 72  65 64 20 28 30 25 0a 09  |ply stored (0%..|
00003a80  20 20 20 20 20 20 63 6f  6d 70 72 65 73 73 69 6f  |      compressio|
00003a90  6e 29 20 69 6e 20 74 68  65 20 6f 75 74 70 75 74  |n) in the output|
00003aa0  20 7a 69 70 20 66 69 6c  65 2c 20 20 73 6f 09 74  | zip file,  so.t|
00003ab0  68 61 74 20 20 7a 69 70  0a 09 20 20 20 20 20 20  |hat  zip..      |
00003ac0  64 6f 65 73 6e 27 74 20  20 77 61 73 74 65 20 20  |doesn't  waste  |
00003ad0  69 74 73 20 20 74 69 6d  65 09 20 74 72 79 69 6e  |its  time. tryin|
00003ae0  67 20 74 6f 20 63 6f 6d  70 72 65 73 73 20 74 68  |g to compress th|
00003af0  65 6d 2e 0a 09 20 20 20  20 20 20 54 68 65 20 73  |em...      The s|
00003b00  75 66 66 69 78 65 73 20  61 72 65 09 73 65 70 61  |uffixes are.sepa|
00003b10  72 61 74 65 64 20 20 62  79 20 20 65 69 74 68 65  |rated  by  eithe|
00003b20  72 20 20 63 6f 6c 6f 6e  73 20 20 6f 72 0a 09 20  |r  colons  or.. |
00003b30  20 20 20 20 20 73 65 6d  69 63 6f 6c 6f 6e 73 2e  |     semicolons.|
00003b40  20 20 46 6f 72 20 65 78  61 6d 70 6c 65 3a 0a 0a  |  For example:..|
00003b50  09 09 20 20 20 20 20 7a  69 70 20 2d 72 6e 20 2e  |..     zip -rn .|
00003b60  5a 3a 2e 7a 69 70 3a 2e  74 69 66 66 3a 2e 67 69  |Z:.zip:.tiff:.gi|
00003b70  66 3a 2e 73 6e 64 20 20  66 6f 6f 20 66 6f 6f 0a  |f:.snd  foo foo.|
00003b80  0a 09 20 20 20 20 20 20  77 69 6c 6c 20 20 63 6f  |..      will  co|
00003b90  70 79 20 20 65 76 65 72  79 74 68 69 6e 67 20 20  |py  everything  |
00003ba0  66 72 6f 6d 20 20 66 6f  6f 20 69 6e 74 6f 20 66  |from  foo into f|
00003bb0  6f 6f 2e 7a 69 70 2c 20  62 75 74 0a 09 20 20 20  |oo.zip, but..   |
00003bc0  20 20 20 77 69 6c 6c 20  73 74 6f 72 65 20 61 6e  |   will store an|
00003bd0  79 20 66 69 6c 65 73 20  74 68 61 74 20 65 6e 64  |y files that end|
00003be0  20 69 6e 20 2e 5a 2c 20  20 2e 7a 69 70 2c 20 20  | in .Z,  .zip,  |
00003bf0  2e 74 69 66 66 2c 0a 09  20 20 20 20 20 20 2e 67  |.tiff,..      .g|
00003c00  69 66 2c 20 20 6f 72 09  20 2e 73 6e 64 20 20 77  |if,  or. .snd  w|
00003c10  69 74 68 6f 75 74 09 74  72 79 69 6e 67 09 74 6f  |ithout.trying.to|
00003c20  20 20 63 6f 6d 70 72 65  73 73 20 74 68 65 6d 0a  |  compress them.|
00003c30  09 20 20 20 20 20 20 28  69 6d 61 67 65 20 61 6e  |.      (image an|
00003c40  64 20 73 6f 75 6e 64 20  66 69 6c 65 73 20 6f 66  |d sound files of|
00003c50  74 65 6e 20 68 61 76 65  09 20 74 68 65 69 72 09  |ten have. their.|
00003c60  6f 77 6e 20 20 73 70 65  2d 0a 09 20 20 20 20 20  |own  spe-..     |
00003c70  20 63 69 61 6c 69 7a 65  64 09 63 6f 6d 70 72 65  | cialized.compre|
00003c80  73 73 69 6f 6e 20 20 6d  65 74 68 6f 64 73 29 2e  |ssion  methods).|
00003c90  09 20 42 79 20 20 64 65  66 61 75 6c 74 2c 20 7a  |. By  default, z|
00003ca0  69 70 0a 09 20 20 20 20  20 20 64 6f 65 73 20 6e  |ip..      does n|
00003cb0  6f 74 20 63 6f 6d 70 72  65 73 73 20 66 69 6c 65  |ot compress file|
00003cc0  73 20 77 69 74 68 20 65  78 74 65 6e 73 69 6f 6e  |s with extension|
00003cd0  73 20 69 6e 20 74 68 65  20 6c 69 73 74 0a 09 20  |s in the list.. |
00003ce0  20 20 20 20 20 2e 5a 3a  2e 7a 69 70 3a 2e 7a 6f  |     .Z:.zip:.zo|
00003cf0  6f 3a 2e 61 72 63 3a 2e  6c 7a 68 3a 2e 61 72 6a  |o:.arc:.lzh:.arj|
00003d00  2e 20 20 53 75 63 68 20  66 69 6c 65 73 20 61 72  |.  Such files ar|
00003d10  65 20 73 74 6f 72 65 64  0a 09 20 20 20 20 20 20  |e stored..      |
00003d20  64 69 72 65 63 74 6c 79  20 69 6e 20 74 68 65 20  |directly in the |
00003d30  6f 75 74 70 75 74 20 20  61 72 63 68 69 76 65 2e  |output  archive.|
00003d40  09 20 54 68 65 20 20 65  6e 76 69 72 6f 6e 6d 65  |. The  environme|
00003d50  6e 74 0a 09 20 20 20 20  20 20 76 61 72 69 61 62  |nt..      variab|
00003d60  6c 65 09 5a 49 50 4f 50  54 09 63 61 6e 20 62 65  |le.ZIPOPT.can be|
00003d70  20 75 73 65 64 20 74 6f  20 63 68 61 6e 67 65 20  | used to change |
00003d80  74 68 65 20 64 65 66 61  75 6c 74 0a 09 20 20 20  |the default..   |
00003d90  20 20 20 6f 70 74 69 6f  6e 73 2e 20 46 6f 72 20  |   options. For |
00003da0  65 78 61 6d 70 6c 65 20  75 6e 64 65 72 20 55 6e  |example under Un|
00003db0  69 78 20 77 69 74 68 20  63 73 68 3a 0a 0a 09 09  |ix with csh:....|
00003dc0  20 20 20 20 20 73 65 74  65 6e 76 20 5a 49 50 4f  |     setenv ZIPO|
00003dd0  50 54 20 22 2d 6e 20 2e  67 69 66 3a 2e 7a 69 70  |PT "-n .gif:.zip|
00003de0  22 0a 0a 09 20 20 20 20  20 20 54 6f 20 61 74 74  |"...      To att|
00003df0  65 6d 70 74 20 63 6f 6d  70 72 65 73 73 69 6f 6e  |empt compression|
00003e00  20 6f 6e 20 61 6c 6c 20  66 69 6c 65 73 2c 20 75  | on all files, u|
00003e10  73 65 3a 0a 0a 09 09 20  20 20 20 20 7a 69 70 20  |se:....     zip |
00003e20  2d 6e 20 3a 20 66 6f 6f  0a 0a 09 20 20 20 20 20  |-n : foo...     |
00003e30  20 54 68 65 20 6d 61 78  69 6d 75 6d 20 63 6f 6d  | The maximum com|
00003e40  70 72 65 73 73 69 6f 6e  20 20 6f 70 74 69 6f 6e  |pression  option|
00003e50  20 20 2d 39 20 20 61 6c  73 6f 09 20 61 74 74 65  |  -9  also. atte|
00003e60  6d 70 74 73 0a 09 20 20  20 20 20 20 63 6f 6d 70  |mpts..      comp|
00003e70  72 65 73 73 69 6f 6e 20  6f 6e 20 61 6c 6c 20 66  |ression on all f|
00003e80  69 6c 65 73 20 72 65 67  61 72 64 6c 65 73 73 20  |iles regardless |
00003e90  6f 66 20 65 78 74 65 6e  73 69 6f 6e 2e 0a 0a 09  |of extension....|
00003ea0  20 20 20 20 20 20 4f 6e  20 20 41 63 6f 72 6e 20  |      On  Acorn |
00003eb0  52 49 53 43 20 4f 53 20  73 79 73 74 65 6d 73 20  |RISC OS systems |
00003ec0  74 68 65 20 73 75 66 66  69 78 65 73 20 61 72 65  |the suffixes are|
00003ed0  20 61 63 74 75 61 6c 6c  79 0a 09 20 20 20 20 20  | actually..     |
00003ee0  20 66 69 6c 65 74 79 70  65 73 20 28 33 20 68 65  | filetypes (3 he|
00003ef0  78 20 64 69 67 69 74 20  20 66 6f 72 6d 61 74 29  |x digit  format)|
00003f00  2e 09 42 79 20 20 64 65  66 61 75 6c 74 2c 20 20  |..By  default,  |
00003f10  7a 69 70 0a 09 20 20 20  20 20 20 64 6f 65 73 20  |zip..      does |
00003f20  20 6e 6f 74 20 63 6f 6d  70 72 65 73 73 20 66 69  | not compress fi|
00003f30  6c 65 73 20 77 69 74 68  20 66 69 6c 65 74 79 70  |les with filetyp|
00003f40  65 73 20 69 6e 20 74 68  65 20 6c 69 73 74 0a 09  |es in the list..|
00003f50  20 20 20 20 20 20 44 44  43 3a 44 39 36 3a 36 38  |      DDC:D96:68|
00003f60  45 20 28 69 2e 65 2e 20  41 72 63 68 69 76 65 73  |E (i.e. Archives|
00003f70  2c 20 43 46 53 20 66 69  6c 65 73 20 20 61 6e 64  |, CFS files  and|
00003f80  20 20 50 61 63 6b 44 69  72 0a 09 20 20 20 20 20  |  PackDir..     |
00003f90  20 66 69 6c 65 73 29 2e  0a 0a 20 20 20 20 20 20  | files)...      |
00003fa0  20 2d 4e 20 20 20 20 20  53 61 76 65 20 20 41 6d  | -N     Save  Am|
00003fb0  69 67 61 20 66 69 6c 65  6e 6f 74 65 73 20 61 73  |iga filenotes as|
00003fc0  20 7a 69 70 66 69 6c 65  20 63 6f 6d 6d 65 6e 74  | zipfile comment|
00003fd0  73 2e 20 54 68 65 79 20  63 61 6e 0a 09 20 20 20  |s. They can..   |
00003fe0  20 20 20 62 65 20 72 65  73 74 6f 72 65 64 20 62  |   be restored b|
00003ff0  79 20 75 73 69 6e 67 20  74 68 65 20 2d 4e 20 6f  |y using the -N o|
00004000  70 74 69 6f 6e 20 6f 66  20 20 75 6e 7a 69 70 2e  |ption of  unzip.|
00004010  20 20 54 68 69 73 0a 0a  49 6e 66 6f 2d 5a 49 50  |  This..Info-ZIP|
00004020  09 20 20 20 20 20 20 20  32 32 20 4a 75 6e 65 20  |.       22 June |
00004030  31 39 39 37 20 28 76 32  2e 32 29 09 09 09 37 0a  |1997 (v2.2)...7.|
00004040  0a 5a 49 50 28 31 4c 29  09 09 09 09 09 09 09 20  |.ZIP(1L)....... |
00004050  20 5a 49 50 28 31 4c 29  0a 0a 09 20 20 20 20 20  | ZIP(1L)...     |
00004060  20 6f 70 74 69 6f 6e 20  20 69 73 20 20 61 76 61  | option  is  ava|
00004070  69 6c 61 62 6c 65 20 20  6f 6e 09 20 74 68 65 20  |ilable  on. the |
00004080  41 6d 69 67 61 20 6f 6e  6c 79 2e 20 49 66 20 2d  |Amiga only. If -|
00004090  63 20 69 73 0a 09 20 20  20 20 20 20 75 73 65 64  |c is..      used|
000040a0  20 61 6c 73 6f 2c 20 79  6f 75 20 61 72 65 20 70  | also, you are p|
000040b0  72 6f 6d 70 74 65 64 20  66 6f 72 20 63 6f 6d 6d  |rompted for comm|
000040c0  65 6e 74 73 09 6f 6e 6c  79 20 20 66 6f 72 0a 09  |ents.only  for..|
000040d0  20 20 20 20 20 20 74 68  6f 73 65 20 66 69 6c 65  |      those file|
000040e0  73 20 74 68 61 74 20 64  6f 20 6e 6f 74 20 68 61  |s that do not ha|
000040f0  76 65 20 66 69 6c 65 6e  6f 74 65 73 2e 0a 0a 20  |ve filenotes... |
00004100  20 20 20 20 20 20 2d 6f  20 20 20 20 20 53 65 74  |      -o     Set|
00004110  20 20 74 68 65 20 22 6c  61 73 74 20 6d 6f 64 69  |  the "last modi|
00004120  66 69 65 64 22 20 74 69  6d 65 20 6f 66 20 74 68  |fied" time of th|
00004130  65 20 7a 69 70 20 61 72  63 68 69 76 65 20 74 6f  |e zip archive to|
00004140  0a 09 20 20 20 20 20 20  74 68 65 20 6c 61 74 65  |..      the late|
00004150  73 74 20 20 28 6f 6c 64  65 73 74 29 20 20 22 6c  |st  (oldest)  "l|
00004160  61 73 74 20 20 6d 6f 64  69 66 69 65 64 22 20 20  |ast  modified"  |
00004170  74 69 6d 65 20 20 66 6f  75 6e 64 0a 09 20 20 20  |time  found..   |
00004180  20 20 20 61 6d 6f 6e 67  20 20 74 68 65 20 65 6e  |   among  the en|
00004190  74 72 69 65 73 20 69 6e  20 74 68 65 20 7a 69 70  |tries in the zip|
000041a0  20 61 72 63 68 69 76 65  2e 20 20 54 68 69 73 20  | archive.  This |
000041b0  63 61 6e 20 62 65 0a 09  20 20 20 20 20 20 75 73  |can be..      us|
000041c0  65 64 20 77 69 74 68 6f  75 74 20 61 6e 79 20 6f  |ed without any o|
000041d0  74 68 65 72 20 6f 70 65  72 61 74 69 6f 6e 73 2c  |ther operations,|
000041e0  20 69 66 20 64 65 73 69  72 65 64 2e 20 20 46 6f  | if desired.  Fo|
000041f0  72 0a 09 20 20 20 20 20  20 65 78 61 6d 70 6c 65  |r..      example|
00004200  3a 0a 0a 09 20 20 20 20  20 20 7a 69 70 20 2d 6f  |:...      zip -o|
00004210  20 66 6f 6f 0a 0a 09 20  20 20 20 20 20 77 69 6c  | foo...      wil|
00004220  6c 20 20 63 68 61 6e 67  65 20 20 74 68 65 09 20  |l  change  the. |
00004230  6c 61 73 74 20 6d 6f 64  69 66 69 65 64 20 74 69  |last modified ti|
00004240  6d 65 20 6f 66 20 66 6f  6f 2e 7a 69 70 20 74 6f  |me of foo.zip to|
00004250  0a 09 20 20 20 20 20 20  74 68 65 20 6c 61 74 65  |..      the late|
00004260  73 74 20 74 69 6d 65 20  6f 66 20 74 68 65 20 65  |st time of the e|
00004270  6e 74 72 69 65 73 20 69  6e 20 66 6f 6f 2e 7a 69  |ntries in foo.zi|
00004280  70 2e 0a 0a 20 20 20 20  20 20 20 2d 50 20 70 61  |p...       -P pa|
00004290  73 73 77 6f 72 64 0a 09  20 20 20 20 20 20 75 73  |ssword..      us|
000042a0  65 20 70 61 73 73 77 6f  72 64 20 74 6f 20 65 6e  |e password to en|
000042b0  63 72 79 70 74 20 7a 69  70 66 69 6c 65 20 65 6e  |crypt zipfile en|
000042c0  74 72 69 65 73 20 20 28  69 66 20 20 61 6e 79 29  |tries  (if  any)|
000042d0  2e 0a 09 20 20 20 20 20  20 54 48 49 53 20 20 49  |...      THIS  I|
000042e0  53 09 49 4e 53 45 43 55  52 45 21 20 20 4d 61 6e  |S.INSECURE!  Man|
000042f0  79 20 6d 75 6c 74 69 2d  75 73 65 72 20 6f 70 65  |y multi-user ope|
00004300  72 61 74 69 6e 67 20 73  79 73 2d 0a 09 20 20 20  |rating sys-..   |
00004310  20 20 20 74 65 6d 73 20  70 72 6f 76 69 64 65 20  |   tems provide |
00004320  77 61 79 73 20 66 6f 72  20 61 6e 79 20 75 73 65  |ways for any use|
00004330  72 20 74 6f 20 73 65 65  20 20 74 68 65 20 20 63  |r to see  the  c|
00004340  75 72 72 65 6e 74 0a 09  20 20 20 20 20 20 63 6f  |urrent..      co|
00004350  6d 6d 61 6e 64 20 6c 69  6e 65 20 6f 66 20 61 6e  |mmand line of an|
00004360  79 20 6f 74 68 65 72 20  75 73 65 72 3b 20 65 76  |y other user; ev|
00004370  65 6e 20 6f 6e 20 73 74  61 6e 64 2d 61 6c 6f 6e  |en on stand-alon|
00004380  65 0a 09 20 20 20 20 20  20 73 79 73 74 65 6d 73  |e..      systems|
00004390  20 74 68 65 72 65 20 69  73 20 61 6c 77 61 79 73  | there is always|
000043a0  20 20 74 68 65 20 20 74  68 72 65 61 74 20 20 6f  |  the  threat  o|
000043b0  66 09 6f 76 65 72 2d 74  68 65 2d 0a 09 20 20 20  |f.over-the-..   |
000043c0  20 20 20 73 68 6f 75 6c  64 65 72 09 70 65 65 6b  |   shoulder.peek|
000043d0  69 6e 67 2e 20 20 20 53  74 6f 72 69 6e 67 20 74  |ing.   Storing t|
000043e0  68 65 20 70 6c 61 69 6e  74 65 78 74 20 70 61 73  |he plaintext pas|
000043f0  73 77 6f 72 64 0a 09 20  20 20 20 20 20 61 73 20  |sword..      as |
00004400  70 61 72 74 20 6f 66 20  61 20 63 6f 6d 6d 61 6e  |part of a comman|
00004410  64 20 6c 69 6e 65 20 69  6e 20 61 6e 20 61 75 74  |d line in an aut|
00004420  6f 6d 61 74 65 64 20 73  63 72 69 70 74 20 69 73  |omated script is|
00004430  0a 09 20 20 20 20 20 20  65 76 65 6e 20 20 77 6f  |..      even  wo|
00004440  72 73 65 2e 20 20 20 57  68 65 6e 65 76 65 72 20  |rse.   Whenever |
00004450  70 6f 73 73 69 62 6c 65  2c 20 75 73 65 20 74 68  |possible, use th|
00004460  65 20 6e 6f 6e 2d 65 63  68 6f 2d 0a 09 20 20 20  |e non-echo-..   |
00004470  20 20 20 69 6e 67 2c 20  69 6e 74 65 72 61 63 74  |   ing, interact|
00004480  69 76 65 20 70 72 6f 6d  70 74 20 74 6f 20 65 6e  |ive prompt to en|
00004490  74 65 72 09 70 61 73 73  77 6f 72 64 73 2e 20 20  |ter.passwords.  |
000044a0  20 28 41 6e 64 0a 09 20  20 20 20 20 20 77 68 65  | (And..      whe|
000044b0  72 65 20 20 73 65 63 75  72 69 74 79 20 20 69 73  |re  security  is|
000044c0  20 20 74 72 75 6c 79 20  20 69 6d 70 6f 72 74 61  |  truly  importa|
000044d0  6e 74 2c 20 20 75 73 65  20 20 73 74 72 6f 6e 67  |nt,  use  strong|
000044e0  0a 09 20 20 20 20 20 20  65 6e 63 72 79 70 74 69  |..      encrypti|
000044f0  6f 6e 20 73 75 63 68 20  61 73 20 50 72 65 74 74  |on such as Prett|
00004500  79 20 47 6f 6f 64 20 50  72 69 76 61 63 79 20 20  |y Good Privacy  |
00004510  69 6e 73 74 65 61 64 20  20 6f 66 0a 09 20 20 20  |instead  of..   |
00004520  20 20 20 74 68 65 20 72  65 6c 61 74 69 76 65 6c  |   the relativel|
00004530  79 20 77 65 61 6b 20 65  6e 63 72 79 70 74 69 6f  |y weak encryptio|
00004540  6e 20 70 72 6f 76 69 64  65 64 20 62 79 20 73 74  |n provided by st|
00004550  61 6e 64 61 72 64 0a 09  20 20 20 20 20 20 7a 69  |andard..      zi|
00004560  70 66 69 6c 65 20 75 74  69 6c 69 74 69 65 73 2e  |pfile utilities.|
00004570  29 0a 0a 20 20 20 20 20  20 20 2d 71 20 20 20 20  |)..       -q    |
00004580  20 51 75 69 65 74 20 6d  6f 64 65 3b 20 65 6c 69  | Quiet mode; eli|
00004590  6d 69 6e 61 74 65 20 20  69 6e 66 6f 72 6d 61 74  |minate  informat|
000045a0  69 6f 6e 61 6c 20 20 6d  65 73 73 61 67 65 73 20  |ional  messages |
000045b0  20 61 6e 64 0a 09 20 20  20 20 20 20 63 6f 6d 6d  | and..      comm|
000045c0  65 6e 74 20 20 70 72 6f  6d 70 74 73 2e 09 20 20  |ent  prompts..  |
000045d0  28 55 73 65 66 75 6c 2c  20 20 66 6f 72 20 65 78  |(Useful,  for ex|
000045e0  61 6d 70 6c 65 2c 20 69  6e 20 73 68 65 6c 6c 0a  |ample, in shell.|
000045f0  09 20 20 20 20 20 20 73  63 72 69 70 74 73 20 61  |.      scripts a|
00004600  6e 64 20 62 61 63 6b 67  72 6f 75 6e 64 20 74 61  |nd background ta|
00004610  73 6b 73 29 2e 0a 0a 20  20 20 20 20 20 20 2d 72  |sks)...       -r|
00004620  20 20 20 20 20 54 72 61  76 65 6c 20 74 68 65 20  |     Travel the |
00004630  20 64 69 72 65 63 74 6f  72 79 20 20 73 74 72 75  | directory  stru|
00004640  63 74 75 72 65 09 72 65  63 75 72 73 69 76 65 6c  |cture.recursivel|
00004650  79 3b 20 20 66 6f 72 0a  09 20 20 20 20 20 20 65  |y;  for..      e|
00004660  78 61 6d 70 6c 65 3a 0a  0a 09 09 20 20 20 20 20  |xample:....     |
00004670  7a 69 70 20 2d 72 20 66  6f 6f 20 66 6f 6f 0a 0a  |zip -r foo foo..|
00004680  09 20 20 20 20 20 20 49  6e 20 20 74 68 69 73 20  |.      In  this |
00004690  63 61 73 65 2c 20 61 6c  6c 20 74 68 65 20 66 69  |case, all the fi|
000046a0  6c 65 73 20 61 6e 64 20  64 69 72 65 63 74 6f 72  |les and director|
000046b0  69 65 73 20 69 6e 20 66  6f 6f 0a 09 20 20 20 20  |ies in foo..    |
000046c0  20 20 61 72 65 20 73 61  76 65 64 20 69 6e 20 61  |  are saved in a|
000046d0  20 7a 69 70 20 61 72 63  68 69 76 65 20 6e 61 6d  | zip archive nam|
000046e0  65 64 20 66 6f 6f 2e 7a  69 70 2c 20 69 6e 63 6c  |ed foo.zip, incl|
000046f0  75 64 69 6e 67 0a 09 20  20 20 20 20 20 66 69 6c  |uding..      fil|
00004700  65 73 20 20 77 69 74 68  20 20 6e 61 6d 65 73 20  |es  with  names |
00004710  20 73 74 61 72 74 69 6e  67 20 20 77 69 74 68 20  | starting  with |
00004720  20 22 2e 22 2c 09 73 69  6e 63 65 20 74 68 65 0a  | ".",.since the.|
00004730  09 20 20 20 20 20 20 72  65 63 75 72 73 69 6f 6e  |.      recursion|
00004740  20 64 6f 65 73 20 6e 6f  74 20 75 73 65 20 74 68  | does not use th|
00004750  65 20 73 68 65 6c 6c 27  73 20 20 66 69 6c 65 2d  |e shell's  file-|
00004760  6e 61 6d 65 20 20 73 75  62 2d 0a 09 20 20 20 20  |name  sub-..    |
00004770  20 20 73 74 69 74 75 74  69 6f 6e 20 6d 65 63 68  |  stitution mech|
00004780  61 6e 69 73 6d 2e 20 20  49 66 20 79 6f 75 20 77  |anism.  If you w|
00004790  69 73 68 20 74 6f 20 69  6e 63 6c 75 64 65 20 6f  |ish to include o|
000047a0  6e 6c 79 20 61 0a 09 20  20 20 20 20 20 73 70 65  |nly a..      spe|
000047b0  63 69 66 69 63 20 73 75  62 73 65 74 20 6f 66 20  |cific subset of |
000047c0  74 68 65 20 66 69 6c 65  73 20 69 6e 20 64 69 72  |the files in dir|
000047d0  65 63 74 6f 72 79 09 20  66 6f 6f 20 20 61 6e 64  |ectory. foo  and|
000047e0  0a 09 20 20 20 20 20 20  69 74 73 20 20 73 75 62  |..      its  sub|
000047f0  64 69 72 65 63 74 6f 72  69 65 73 2c 20 20 75 73  |directories,  us|
00004800  65 09 20 74 68 65 20 2d  69 20 6f 70 74 69 6f 6e  |e. the -i option|
00004810  20 74 6f 20 73 70 65 63  69 66 79 0a 09 20 20 20  | to specify..   |
00004820  20 20 20 74 68 65 20 70  61 74 74 65 72 6e 20 6f  |   the pattern o|
00004830  66 20 66 69 6c 65 73 20  74 6f 20 62 65 20 20 69  |f files to be  i|
00004840  6e 63 6c 75 64 65 64 2e  20 20 20 59 6f 75 20 20  |ncluded.   You  |
00004850  73 68 6f 75 6c 64 0a 09  20 20 20 20 20 20 6e 6f  |should..      no|
00004860  74 20 20 75 73 65 09 2d  72 20 77 69 74 68 20 74  |t  use.-r with t|
00004870  68 65 20 6e 61 6d 65 20  22 2e 2a 22 2c 20 73 69  |he name ".*", si|
00004880  6e 63 65 20 74 68 61 74  20 6d 61 74 63 68 65 73  |nce that matches|
00004890  0a 09 20 20 20 20 20 20  22 2e 2e 22 20 20 77 68  |..      ".."  wh|
000048a0  69 63 68 20 77 69 6c 6c  09 61 74 74 65 6d 70 74  |ich will.attempt|
000048b0  09 20 74 6f 20 20 7a 69  70 20 20 75 70 20 20 74  |. to  zip  up  t|
000048c0  68 65 20 20 70 61 72 65  6e 74 0a 09 20 20 20 20  |he  parent..    |
000048d0  20 20 64 69 72 65 63 74  6f 72 79 20 28 70 72 6f  |  directory (pro|
000048e0  62 61 62 6c 79 20 6e 6f  74 20 77 68 61 74 20 77  |bably not what w|
000048f0  61 73 20 69 6e 74 65 6e  64 65 64 29 2e 0a 0a 20  |as intended)... |
00004900  20 20 20 20 20 20 2d 52  20 20 20 20 20 54 72 61  |      -R     Tra|
00004910  76 65 6c 20 74 68 65 20  64 69 72 65 63 74 6f 72  |vel the director|
00004920  79 20 73 74 72 75 63 74  75 72 65 20 72 65 63 75  |y structure recu|
00004930  72 73 69 76 65 6c 79 20  73 74 61 72 74 69 6e 67  |rsively starting|
00004940  0a 09 20 20 20 20 20 20  61 74 20 74 68 65 20 63  |..      at the c|
00004950  75 72 72 65 6e 74 20 64  69 72 65 63 74 6f 72 79  |urrent directory|
00004960  3b 20 66 6f 72 20 65 78  61 6d 70 6c 65 3a 0a 0a  |; for example:..|
00004970  49 6e 66 6f 2d 5a 49 50  09 20 20 20 20 20 20 20  |Info-ZIP.       |
00004980  32 32 20 4a 75 6e 65 20  31 39 39 37 20 28 76 32  |22 June 1997 (v2|
00004990  2e 32 29 09 09 09 38 0a  0a 5a 49 50 28 31 4c 29  |.2)...8..ZIP(1L)|
000049a0  09 09 09 09 09 09 09 20  20 5a 49 50 28 31 4c 29  |.......  ZIP(1L)|
000049b0  0a 0a 09 09 20 20 20 20  20 7a 69 70 20 2d 52 20  |....     zip -R |
000049c0  66 6f 6f 20 2a 2e 63 0a  0a 09 20 20 20 20 20 20  |foo *.c...      |
000049d0  49 6e 20 74 68 69 73 20  63 61 73 65 2c 20 61 6c  |In this case, al|
000049e0  6c 20 74 68 65 20 66 69  6c 65 73 20 20 6d 61 74  |l the files  mat|
000049f0  63 68 69 6e 67 20 20 2a  2e 63 20 20 69 6e 20 20  |ching  *.c  in  |
00004a00  74 68 65 0a 09 20 20 20  20 20 20 74 72 65 65 20  |the..      tree |
00004a10  20 73 74 61 72 74 69 6e  67 20 20 61 74 20 74 68  | starting  at th|
00004a20  65 20 63 75 72 72 65 6e  74 20 64 69 72 65 63 74  |e current direct|
00004a30  6f 72 79 20 61 72 65 20  73 74 6f 72 65 64 0a 09  |ory are stored..|
00004a40  20 20 20 20 20 20 69 6e  74 6f 20 61 20 7a 69 70  |      into a zip|
00004a50  20 61 72 63 68 69 76 65  20 6e 61 6d 65 64 20 66  | archive named f|
00004a60  6f 6f 2e 7a 69 70 2e 09  20 4e 6f 74 65 20 20 66  |oo.zip.. Note  f|
00004a70  6f 72 20 20 50 4b 5a 49  50 0a 09 20 20 20 20 20  |or  PKZIP..     |
00004a80  20 75 73 65 72 73 3a 20  74 68 65 20 65 71 75 69  | users: the equi|
00004a90  76 61 6c 65 6e 74 20 63  6f 6d 6d 61 6e 64 20 69  |valent command i|
00004aa0  73 0a 0a 09 09 20 20 20  20 20 70 6b 7a 69 70 20  |s....     pkzip |
00004ab0  2d 72 50 20 66 6f 6f 20  2a 2e 63 0a 0a 20 20 20  |-rP foo *.c..   |
00004ac0  20 20 20 20 2d 53 20 20  20 20 20 49 6e 63 6c 75  |    -S     Inclu|
00004ad0  64 65 20 20 73 79 73 74  65 6d 20 20 61 6e 64 20  |de  system  and |
00004ae0  20 68 69 64 64 65 6e 20  20 66 69 6c 65 73 2e 20  | hidden  files. |
00004af0  54 68 69 73 20 6f 70 74  69 6f 6e 20 69 73 0a 09  |This option is..|
00004b00  20 20 20 20 20 20 65 66  66 65 63 74 69 76 65 20  |      effective |
00004b10  6f 6e 20 73 6f 6d 65 20  73 79 73 74 65 6d 73 20  |on some systems |
00004b20  6f 6e 6c 79 3b 20 69 74  20 20 69 73 20 20 69 67  |only; it  is  ig|
00004b30  6e 6f 72 65 64 20 20 6f  6e 0a 09 20 20 20 20 20  |nored  on..     |
00004b40  20 55 6e 69 78 2e 0a 0a  20 20 20 20 20 20 20 2d  | Unix...       -|
00004b50  74 20 6d 6d 64 64 79 79  79 79 0a 09 20 20 20 20  |t mmddyyyy..    |
00004b60  20 20 44 6f 20 6e 6f 74  20 6f 70 65 72 61 74 65  |  Do not operate|
00004b70  20 6f 6e 20 66 69 6c 65  73 20 6d 6f 64 69 66 69  | on files modifi|
00004b80  65 64 20 70 72 69 6f 72  20 74 6f 20 74 68 65 20  |ed prior to the |
00004b90  73 70 65 63 2d 0a 09 20  20 20 20 20 20 69 66 69  |spec-..      ifi|
00004ba0  65 64 20 64 61 74 65 2c  20 77 68 65 72 65 20 6d  |ed date, where m|
00004bb0  6d 20 69 73 20 74 68 65  20 6d 6f 6e 74 68 20 28  |m is the month (|
00004bc0  30 2d 31 32 29 2c 20 64  64 20 69 73 20 74 68 65  |0-12), dd is the|
00004bd0  0a 09 20 20 20 20 20 20  64 61 79 20 6f 66 20 74  |..      day of t|
00004be0  68 65 20 6d 6f 6e 74 68  20 28 31 2d 33 31 29 2c  |he month (1-31),|
00004bf0  20 61 6e 64 20 79 79 79  79 20 69 73 20 74 68 65  | and yyyy is the|
00004c00  20 79 65 61 72 2e 20 20  46 6f 72 0a 09 20 20 20  | year.  For..   |
00004c10  20 20 20 65 78 61 6d 70  6c 65 3a 0a 0a 09 09 20  |   example:.... |
00004c20  20 20 20 20 7a 69 70 20  2d 72 74 20 31 32 30 37  |    zip -rt 1207|
00004c30  31 39 39 31 20 69 6e 66  61 6d 79 20 66 6f 6f 0a  |1991 infamy foo.|
00004c40  0a 09 20 20 20 20 20 20  77 69 6c 6c 20 61 64 64  |..      will add|
00004c50  20 61 6c 6c 20 74 68 65  20 66 69 6c 65 73 20 69  | all the files i|
00004c60  6e 20 66 6f 6f 20 61 6e  64 09 20 69 74 73 20 20  |n foo and. its  |
00004c70  73 75 62 64 69 72 65 63  74 6f 2d 0a 09 20 20 20  |subdirecto-..   |
00004c80  20 20 20 72 69 65 73 20  74 68 61 74 20 77 65 72  |   ries that wer|
00004c90  65 20 6c 61 73 74 20 6d  6f 64 69 66 69 65 64 20  |e last modified |
00004ca0  6f 6e 20 6f 72 20 61 66  74 65 72 20 37 20 44 65  |on or after 7 De|
00004cb0  63 65 6d 62 65 72 0a 09  20 20 20 20 20 20 31 39  |cember..      19|
00004cc0  39 31 2c 20 74 6f 20 74  68 65 20 7a 69 70 20 61  |91, to the zip a|
00004cd0  72 63 68 69 76 65 20 69  6e 66 61 6d 79 2e 7a 69  |rchive infamy.zi|
00004ce0  70 2e 0a 0a 20 20 20 20  20 20 20 2d 74 74 20 6d  |p...       -tt m|
00004cf0  6d 64 64 79 79 79 79 0a  09 20 20 20 20 20 20 44  |mddyyyy..      D|
00004d00  6f 20 6e 6f 74 20 6f 70  65 72 61 74 65 20 6f 6e  |o not operate on|
00004d10  20 66 69 6c 65 73 20 6d  6f 64 69 66 69 65 64 20  | files modified |
00004d20  61 66 74 65 72 20 20 6f  72 20 20 61 74 20 20 74  |after  or  at  t|
00004d30  68 65 0a 09 20 20 20 20  20 20 73 70 65 63 69 66  |he..      specif|
00004d40  69 65 64 20 64 61 74 65  2c 20 77 68 65 72 65 20  |ied date, where |
00004d50  6d 6d 20 69 73 20 74 68  65 20 6d 6f 6e 74 68 20  |mm is the month |
00004d60  28 30 2d 31 32 29 2c 20  64 64 20 69 73 0a 09 20  |(0-12), dd is.. |
00004d70  20 20 20 20 20 74 68 65  20 64 61 79 20 6f 66 20  |     the day of |
00004d80  74 68 65 20 6d 6f 6e 74  68 20 28 31 2d 33 31 29  |the month (1-31)|
00004d90  2c 20 61 6e 64 20 79 79  79 79 20 69 73 20 74 68  |, and yyyy is th|
00004da0  65 20 20 79 65 61 72 2e  0a 09 20 20 20 20 20 20  |e  year...      |
00004db0  46 6f 72 20 65 78 61 6d  70 6c 65 3a 0a 0a 09 09  |For example:....|
00004dc0  20 20 20 20 20 7a 69 70  20 2d 72 74 74 20 31 31  |     zip -rtt 11|
00004dd0  33 30 31 39 39 35 20 69  6e 66 61 6d 79 20 66 6f  |301995 infamy fo|
00004de0  6f 0a 0a 09 20 20 20 20  20 20 77 69 6c 6c 20 20  |o...      will  |
00004df0  61 64 64 09 20 61 6c 6c  20 74 68 65 20 66 69 6c  |add. all the fil|
00004e00  65 73 20 69 6e 20 66 6f  6f 20 61 6e 64 20 69 74  |es in foo and it|
00004e10  73 20 73 75 62 64 69 72  65 63 74 6f 2d 0a 09 20  |s subdirecto-.. |
00004e20  20 20 20 20 20 72 69 65  73 20 74 68 61 74 20 77  |     ries that w|
00004e30  65 72 65 20 6c 61 73 74  20 6d 6f 64 69 66 69 65  |ere last modifie|
00004e40  64 20 62 65 66 6f 72 65  20 74 68 65 20 33 30 20  |d before the 30 |
00004e50  4e 6f 76 65 6d 62 65 72  0a 09 20 20 20 20 20 20  |November..      |
00004e60  31 39 39 35 2c 20 74 6f  20 74 68 65 20 7a 69 70  |1995, to the zip|
00004e70  20 61 72 63 68 69 76 65  20 69 6e 66 61 6d 79 2e  | archive infamy.|
00004e80  7a 69 70 2e 0a 0a 20 20  20 20 20 20 20 2d 54 20  |zip...       -T |
00004e90  20 20 20 20 54 65 73 74  20 20 74 68 65 09 20 69  |    Test  the. i|
00004ea0  6e 74 65 67 72 69 74 79  20 20 6f 66 09 74 68 65  |ntegrity  of.the|
00004eb0  20 20 6e 65 77 20 7a 69  70 20 66 69 6c 65 2e 20  |  new zip file. |
00004ec0  49 66 20 74 68 65 0a 09  20 20 20 20 20 20 63 68  |If the..      ch|
00004ed0  65 63 6b 20 66 61 69 6c  73 2c 20 74 68 65 20 6f  |eck fails, the o|
00004ee0  6c 64 20 20 7a 69 70 09  20 66 69 6c 65 20 20 69  |ld  zip. file  i|
00004ef0  73 20 20 75 6e 63 68 61  6e 67 65 64 20 20 61 6e  |s  unchanged  an|
00004f00  64 0a 09 20 20 20 20 20  20 28 77 69 74 68 20 74  |d..      (with t|
00004f10  68 65 20 2d 6d 20 6f 70  74 69 6f 6e 29 20 6e 6f  |he -m option) no|
00004f20  20 69 6e 70 75 74 20 66  69 6c 65 73 20 61 72 65  | input files are|
00004f30  20 72 65 6d 6f 76 65 64  2e 0a 0a 20 20 20 20 20  | removed...     |
00004f40  20 20 2d 75 20 20 20 20  20 52 65 70 6c 61 63 65  |  -u     Replace|
00004f50  20 20 28 75 70 64 61 74  65 29 09 20 61 6e 20 20  |  (update). an  |
00004f60  65 78 69 73 74 69 6e 67  20 20 65 6e 74 72 79 20  |existing  entry |
00004f70  20 69 6e 20 20 74 68 65  20 7a 69 70 0a 09 20 20  | in  the zip..  |
00004f80  20 20 20 20 61 72 63 68  69 76 65 20 6f 6e 6c 79  |    archive only|
00004f90  20 69 66 20 69 74 20 68  61 73 20 62 65 65 6e 20  | if it has been |
00004fa0  6d 6f 64 69 66 69 65 64  20 6d 6f 72 65 09 20 72  |modified more. r|
00004fb0  65 63 65 6e 74 6c 79 0a  09 20 20 20 20 20 20 74  |ecently..      t|
00004fc0  68 61 6e 20 20 74 68 65  09 20 76 65 72 73 69 6f  |han  the. versio|
00004fd0  6e 20 61 6c 72 65 61 64  79 20 69 6e 20 74 68 65  |n already in the|
00004fe0  20 7a 69 70 20 61 72 63  68 69 76 65 2e 20 20 46  | zip archive.  F|
00004ff0  6f 72 0a 09 20 20 20 20  20 20 65 78 61 6d 70 6c  |or..      exampl|
00005000  65 3a 0a 0a 09 09 20 20  20 20 20 7a 69 70 20 2d  |e:....     zip -|
00005010  75 20 73 74 75 66 66 20  2a 0a 0a 09 20 20 20 20  |u stuff *...    |
00005020  20 20 77 69 6c 6c 20 61  64 64 20 61 6e 79 20 6e  |  will add any n|
00005030  65 77 20 66 69 6c 65 73  20 69 6e 09 20 74 68 65  |ew files in. the|
00005040  20 20 63 75 72 72 65 6e  74 20 20 64 69 72 65 63  |  current  direc|
00005050  74 6f 72 79 2c 0a 09 20  20 20 20 20 20 61 6e 64  |tory,..      and|
00005060  20 75 70 64 61 74 65 20  61 6e 79 20 66 69 6c 65  | update any file|
00005070  73 20 77 68 69 63 68 20  68 61 76 65 20 62 65 65  |s which have bee|
00005080  6e 20 6d 6f 64 69 66 69  65 64 20 73 69 6e 63 65  |n modified since|
00005090  0a 09 20 20 20 20 20 20  74 68 65 20 7a 69 70 20  |..      the zip |
000050a0  61 72 63 68 69 76 65 20  73 74 75 66 66 2e 7a 69  |archive stuff.zi|
000050b0  70 20 77 61 73 20 6c 61  73 74 20 63 72 65 61 74  |p was last creat|
000050c0  65 64 2f 6d 6f 64 69 66  69 65 64 0a 09 20 20 20  |ed/modified..   |
000050d0  20 20 20 28 6e 6f 74 65  20 20 74 68 61 74 20 7a  |   (note  that z|
000050e0  69 70 20 77 69 6c 6c 20  6e 6f 74 20 74 72 79 20  |ip will not try |
000050f0  74 6f 20 70 61 63 6b 20  73 74 75 66 66 2e 7a 69  |to pack stuff.zi|
00005100  70 20 69 6e 74 6f 0a 09  20 20 20 20 20 20 69 74  |p into..      it|
00005110  73 65 6c 66 20 77 68 65  6e 20 79 6f 75 20 64 6f  |self when you do|
00005120  20 74 68 69 73 29 2e 0a  0a 49 6e 66 6f 2d 5a 49  | this)...Info-ZI|
00005130  50 09 20 20 20 20 20 20  20 32 32 20 4a 75 6e 65  |P.       22 June|
00005140  20 31 39 39 37 20 28 76  32 2e 32 29 09 09 09 39  | 1997 (v2.2)...9|
00005150  0a 0a 5a 49 50 28 31 4c  29 09 09 09 09 09 09 09  |..ZIP(1L).......|
00005160  20 20 5a 49 50 28 31 4c  29 0a 0a 09 20 20 20 20  |  ZIP(1L)...    |
00005170  20 20 4e 6f 74 65 20 74  68 61 74 20 74 68 65 20  |  Note that the |
00005180  2d 75 20 6f 70 74 69 6f  6e 20 77 69 74 68 20 6e  |-u option with n|
00005190  6f 20 61 72 67 75 6d 65  6e 74 73 20 61 63 74 73  |o arguments acts|
000051a0  20 6c 69 6b 65 0a 09 20  20 20 20 20 20 74 68 65  | like..      the|
000051b0  20 2d 66 20 28 66 72 65  73 68 65 6e 29 20 6f 70  | -f (freshen) op|
000051c0  74 69 6f 6e 2e 0a 0a 20  20 20 20 20 20 20 2d 76  |tion...       -v|
000051d0  20 20 20 20 20 56 65 72  62 6f 73 65 20 6d 6f 64  |     Verbose mod|
000051e0  65 20 6f 72 20 70 72 69  6e 74 20 64 69 61 67 6e  |e or print diagn|
000051f0  6f 73 74 69 63 20 76 65  72 73 69 6f 6e 20 69 6e  |ostic version in|
00005200  66 6f 2e 0a 0a 09 20 20  20 20 20 20 4e 6f 72 6d  |fo....      Norm|
00005210  61 6c 6c 79 2c 09 20 77  68 65 6e 20 20 61 70 70  |ally,. when  app|
00005220  6c 69 65 64 09 74 6f 20  20 72 65 61 6c 20 6f 70  |lied.to  real op|
00005230  65 72 61 74 69 6f 6e 73  2c 20 74 68 69 73 0a 09  |erations, this..|
00005240  20 20 20 20 20 20 6f 70  74 69 6f 6e 20 65 6e 61  |      option ena|
00005250  62 6c 65 73 20 74 68 65  20 64 69 73 70 6c 61 79  |bles the display|
00005260  20 6f 66 20 61 20 70 72  6f 67 72 65 73 73 09 69  | of a progress.i|
00005270  6e 64 69 63 61 74 6f 72  0a 09 20 20 20 20 20 20  |ndicator..      |
00005280  64 75 72 69 6e 67 20 20  63 6f 6d 70 72 65 73 73  |during  compress|
00005290  69 6f 6e 20 61 6e 64 20  72 65 71 75 65 73 74 73  |ion and requests|
000052a0  20 76 65 72 62 6f 73 65  20 64 69 61 67 6e 6f 73  | verbose diagnos|
000052b0  74 69 63 0a 09 20 20 20  20 20 20 69 6e 66 6f 20  |tic..      info |
000052c0  61 62 6f 75 74 20 7a 69  70 66 69 6c 65 20 73 74  |about zipfile st|
000052d0  72 75 63 74 75 72 65 20  6f 64 64 69 74 69 65 73  |ructure oddities|
000052e0  2e 0a 0a 09 20 20 20 20  20 20 57 68 65 6e 20 2d  |....      When -|
000052f0  76 20 69 73 20 74 68 65  20 6f 6e 6c 79 20 63 6f  |v is the only co|
00005300  6d 6d 61 6e 64 20 6c 69  6e 65 20 61 72 67 75 6d  |mmand line argum|
00005310  65 6e 74 2c 20 61 6e 64  20 73 74 64 2d 0a 09 20  |ent, and std-.. |
00005320  20 20 20 20 20 6f 75 74  20 20 69 73 20 20 6e 6f  |     out  is  no|
00005330  74 20 20 72 65 64 69 72  65 63 74 65 64 09 74 6f  |t  redirected.to|
00005340  20 20 61 20 20 66 69 6c  65 2c 20 61 20 64 69 61  |  a  file, a dia|
00005350  67 6e 6f 73 74 69 63 0a  09 20 20 20 20 20 20 73  |gnostic..      s|
00005360  63 72 65 65 6e 20 69 73  20 70 72 69 6e 74 65 64  |creen is printed|
00005370  2e 20 49 6e 20 61 64 64  69 74 69 6f 6e 20 74 6f  |. In addition to|
00005380  20 74 68 65 20 20 68 65  6c 70 20 20 73 63 72 65  | the  help  scre|
00005390  65 6e 0a 09 20 20 20 20  20 20 68 65 61 64 65 72  |en..      header|
000053a0  20 20 77 69 74 68 20 20  70 72 6f 67 72 61 6d 20  |  with  program |
000053b0  20 6e 61 6d 65 2c 20 20  76 65 72 73 69 6f 6e 2c  | name,  version,|
000053c0  20 20 61 6e 64 20 72 65  6c 65 61 73 65 0a 09 20  |  and release.. |
000053d0  20 20 20 20 20 64 61 74  65 2c 20 73 6f 6d 65 20  |     date, some |
000053e0  70 6f 69 6e 74 65 72 73  20 74 6f 20 74 68 65 20  |pointers to the |
000053f0  49 6e 66 6f 2d 5a 49 50  20 68 6f 6d 65 09 61 6e  |Info-ZIP home.an|
00005400  64 20 20 64 69 73 2d 0a  09 20 20 20 20 20 20 74  |d  dis-..      t|
00005410  72 69 62 75 74 69 6f 6e  09 20 73 69 74 65 73 20  |ribution. sites |
00005420  61 72 65 20 67 69 76 65  6e 2e 20 54 68 65 6e 2c  |are given. Then,|
00005430  20 69 74 20 73 68 6f 77  73 20 69 6e 66 6f 72 6d  | it shows inform|
00005440  61 2d 0a 09 20 20 20 20  20 20 74 69 6f 6e 20 61  |a-..      tion a|
00005450  62 6f 75 74 20 74 68 65  20 74 61 72 67 65 74 20  |bout the target |
00005460  20 65 6e 76 69 72 6f 6e  6d 65 6e 74 20 20 28 63  | environment  (c|
00005470  6f 6d 70 69 6c 65 72 20  20 74 79 70 65 0a 09 20  |ompiler  type.. |
00005480  20 20 20 20 20 61 6e 64  20 20 76 65 72 73 69 6f  |     and  versio|
00005490  6e 2c 20 20 4f 53 20 76  65 72 73 69 6f 6e 2c 20  |n,  OS version, |
000054a0  63 6f 6d 70 69 6c 61 74  69 6f 6e 20 64 61 74 65  |compilation date|
000054b0  20 61 6e 64 20 74 68 65  0a 09 20 20 20 20 20 20  | and the..      |
000054c0  65 6e 61 62 6c 65 64 20  6f 70 74 69 6f 6e 61 6c  |enabled optional|
000054d0  20 66 65 61 74 75 72 65  73 20 75 73 65 64 20 74  | features used t|
000054e0  6f 09 20 63 72 65 61 74  65 09 20 74 68 65 20 20  |o. create. the  |
000054f0  7a 69 70 0a 09 20 20 20  20 20 20 65 78 65 63 75  |zip..      execu|
00005500  74 61 62 6c 65 2e 0a 0a  20 20 20 20 20 20 20 2d  |table...       -|
00005510  56 20 20 20 20 20 53 61  76 65 20 20 56 4d 53 20  |V     Save  VMS |
00005520  66 69 6c 65 20 61 74 74  72 69 62 75 74 65 73 2e  |file attributes.|
00005530  20 54 68 69 73 20 6f 70  74 69 6f 6e 20 69 73 20  | This option is |
00005540  61 76 61 69 6c 61 62 6c  65 0a 09 20 20 20 20 20  |available..     |
00005550  20 6f 6e 20 56 4d 53 20  6f 6e 6c 79 3b 20 7a 69  | on VMS only; zi|
00005560  70 20 61 72 63 68 69 76  65 73 20 63 72 65 61 74  |p archives creat|
00005570  65 64 20 77 69 74 68 20  74 68 69 73 20 20 6f 70  |ed with this  op|
00005580  74 69 6f 6e 0a 09 20 20  20 20 20 20 77 69 6c 6c  |tion..      will|
00005590  20 67 65 6e 65 72 61 6c  6c 79 20 6e 6f 74 20 62  | generally not b|
000055a0  65 20 75 73 61 62 6c 65  20 6f 6e 20 6f 74 68 65  |e usable on othe|
000055b0  72 20 73 79 73 74 65 6d  73 2e 0a 0a 20 20 20 20  |r systems...    |
000055c0  20 20 20 2d 77 20 20 20  20 20 41 70 70 65 6e 64  |   -w     Append|
000055d0  20 74 68 65 20 76 65 72  73 69 6f 6e 20 6e 75 6d  | the version num|
000055e0  62 65 72 20 6f 66 20 74  68 65 20 66 69 6c 65 73  |ber of the files|
000055f0  20 74 6f 20 74 68 65 20  6e 61 6d 65 2c 0a 09 20  | to the name,.. |
00005600  20 20 20 20 20 69 6e 63  6c 75 64 69 6e 67 20 6d  |     including m|
00005610  75 6c 74 69 70 6c 65 20  76 65 72 73 69 6f 6e 73  |ultiple versions|
00005620  20 6f 66 20 66 69 6c 65  73 2e 20 20 20 28 56 4d  | of files.   (VM|
00005630  53 20 20 6f 6e 6c 79 3b  0a 09 20 20 20 20 20 20  |S  only;..      |
00005640  64 65 66 61 75 6c 74 3a  09 75 73 65 20 20 6f 6e  |default:.use  on|
00005650  6c 79 20 20 74 68 65 09  6d 6f 73 74 20 20 72 65  |ly  the.most  re|
00005660  63 65 6e 74 20 76 65 72  73 69 6f 6e 20 6f 66 20  |cent version of |
00005670  61 0a 09 20 20 20 20 20  20 73 70 65 63 69 66 69  |a..      specifi|
00005680  65 64 20 66 69 6c 65 29  2e 0a 0a 20 20 20 20 20  |ed file)...     |
00005690  20 20 2d 78 20 66 69 6c  65 73 0a 09 20 20 20 20  |  -x files..    |
000056a0  20 20 45 78 70 6c 69 63  69 74 6c 79 20 65 78 63  |  Explicitly exc|
000056b0  6c 75 64 65 20 74 68 65  20 73 70 65 63 69 66 69  |lude the specifi|
000056c0  65 64 20 66 69 6c 65 73  2c 20 61 73 20 69 6e 3a  |ed files, as in:|
000056d0  0a 0a 09 09 20 20 20 20  20 7a 69 70 20 2d 72 20  |....     zip -r |
000056e0  66 6f 6f 20 66 6f 6f 20  2d 78 20 5c 2a 2e 6f 0a  |foo foo -x \*.o.|
000056f0  0a 09 20 20 20 20 20 20  77 68 69 63 68 20 77 69  |..      which wi|
00005700  6c 6c 20 69 6e 63 6c 75  64 65 20 74 68 65 20 63  |ll include the c|
00005710  6f 6e 74 65 6e 74 73 20  6f 66 20 66 6f 6f 20 20  |ontents of foo  |
00005720  69 6e 20 20 66 6f 6f 2e  7a 69 70 0a 09 20 20 20  |in  foo.zip..   |
00005730  20 20 20 77 68 69 6c 65  20 20 65 78 63 6c 75 64  |   while  exclud|
00005740  69 6e 67 20 61 6c 6c 20  74 68 65 20 66 69 6c 65  |ing all the file|
00005750  73 20 74 68 61 74 20 65  6e 64 20 69 6e 20 2e 6f  |s that end in .o|
00005760  2e 20 20 54 68 65 0a 09  20 20 20 20 20 20 62 61  |.  The..      ba|
00005770  63 6b 73 6c 61 73 68 20  61 76 6f 69 64 73 20 74  |ckslash avoids t|
00005780  68 65 20 73 68 65 6c 6c  20 20 66 69 6c 65 6e 61  |he shell  filena|
00005790  6d 65 20 20 73 75 62 73  74 69 74 75 74 69 6f 6e  |me  substitution|
000057a0  2c 0a 09 20 20 20 20 20  20 73 6f 20 20 74 68 61  |,..      so  tha|
000057b0  74 09 74 68 65 20 20 6e  61 6d 65 20 6d 61 74 63  |t.the  name matc|
000057c0  68 69 6e 67 20 69 73 20  70 65 72 66 6f 72 6d 65  |hing is performe|
000057d0  64 20 62 79 20 7a 69 70  20 61 74 0a 09 20 20 20  |d by zip at..   |
000057e0  20 20 20 61 6c 6c 20 64  69 72 65 63 74 6f 72 79  |   all directory|
000057f0  20 6c 65 76 65 6c 73 2e  0a 0a 09 20 20 20 20 20  | levels....     |
00005800  20 41 6c 73 6f 20 70 6f  73 73 69 62 6c 65 3a 0a  | Also possible:.|
00005810  0a 09 09 20 20 20 20 20  7a 69 70 20 2d 72 20 66  |...     zip -r f|
00005820  6f 6f 20 66 6f 6f 20 2d  78 40 65 78 63 6c 75 64  |oo foo -x@exclud|
00005830  65 2e 6c 73 74 0a 0a 09  20 20 20 20 20 20 77 68  |e.lst...      wh|
00005840  69 63 68 20 77 69 6c 6c  20 69 6e 63 6c 75 64 65  |ich will include|
00005850  20 74 68 65 20 63 6f 6e  74 65 6e 74 73 20 6f 66  | the contents of|
00005860  20 66 6f 6f 20 20 69 6e  20 20 66 6f 6f 2e 7a 69  | foo  in  foo.zi|
00005870  70 0a 09 20 20 20 20 20  20 77 68 69 6c 65 20 20  |p..      while  |
00005880  65 78 63 6c 75 64 69 6e  67 09 61 6c 6c 20 74 68  |excluding.all th|
00005890  65 20 66 69 6c 65 73 20  74 68 61 74 20 6d 61 74  |e files that mat|
000058a0  63 68 20 74 68 65 20 70  61 74 2d 0a 09 20 20 20  |ch the pat-..   |
000058b0  20 20 20 74 65 72 6e 73  20 69 6e 20 74 68 65 20  |   terns in the |
000058c0  66 69 6c 65 20 65 78 63  6c 75 64 65 2e 6c 73 74  |file exclude.lst|
000058d0  2e 0a 0a 20 20 20 20 20  20 20 2d 58 20 20 20 20  |...       -X    |
000058e0  20 44 6f 20 20 6e 6f 74  20 20 73 61 76 65 20 20  | Do  not  save  |
000058f0  65 78 74 72 61 20 20 66  69 6c 65 20 20 20 61 74  |extra  file   at|
00005900  74 72 69 62 75 74 65 73  09 28 45 78 74 65 6e 64  |tributes.(Extend|
00005910  65 64 0a 09 20 20 20 20  20 20 41 74 74 72 69 62  |ed..      Attrib|
00005920  75 74 65 73 20 20 6f 6e  20 20 4f 53 2f 32 2c 20  |utes  on  OS/2, |
00005930  20 75 69 64 2f 67 69 64  20 20 61 6e 64 20 20 66  | uid/gid  and  f|
00005940  69 6c 65 09 20 74 69 6d  65 73 20 6f 6e 0a 09 20  |ile. times on.. |
00005950  20 20 20 20 20 55 6e 69  78 29 2e 0a 0a 20 20 20  |     Unix)...   |
00005960  20 20 20 20 2d 79 20 20  20 20 20 53 74 6f 72 65  |    -y     Store|
00005970  20 73 79 6d 62 6f 6c 69  63 20 6c 69 6e 6b 73 20  | symbolic links |
00005980  61 73 20 73 75 63 68 20  69 6e 20 20 74 68 65 20  |as such in  the |
00005990  20 7a 69 70 09 20 61 72  63 68 69 76 65 2c 0a 0a  | zip. archive,..|
000059a0  49 6e 66 6f 2d 5a 49 50  09 20 20 20 20 20 20 20  |Info-ZIP.       |
000059b0  32 32 20 4a 75 6e 65 20  31 39 39 37 20 28 76 32  |22 June 1997 (v2|
000059c0  2e 32 29 09 09 20 20 20  20 20 20 20 31 30 0a 0a  |.2)..       10..|
000059d0  5a 49 50 28 31 4c 29 09  09 09 09 09 09 09 20 20  |ZIP(1L).......  |
000059e0  5a 49 50 28 31 4c 29 0a  0a 09 20 20 20 20 20 20  |ZIP(1L)...      |
000059f0  69 6e 73 74 65 61 64 09  6f 66 20 20 20 63 6f 6d  |instead.of   com|
00005a00  70 72 65 73 73 69 6e 67  20 20 61 6e 64 20 20 73  |pressing  and  s|
00005a10  74 6f 72 69 6e 67 09 74  68 65 20 20 66 69 6c 65  |toring.the  file|
00005a20  0a 09 20 20 20 20 20 20  72 65 66 65 72 72 65 64  |..      referred|
00005a30  20 74 6f 20 62 79 20 74  68 65 20 6c 69 6e 6b 20  | to by the link |
00005a40  28 55 4e 49 58 20 6f 6e  6c 79 29 2e 0a 0a 20 20  |(UNIX only)...  |
00005a50  20 20 20 20 20 2d 7a 20  20 20 20 20 50 72 6f 6d  |     -z     Prom|
00005a60  70 74 20 66 6f 72 20 61  20 6d 75 6c 74 69 2d 6c  |pt for a multi-l|
00005a70  69 6e 65 20 63 6f 6d 6d  65 6e 74 20 66 6f 72 20  |ine comment for |
00005a80  74 68 65 20 65 6e 74 69  72 65 20 20 7a 69 70 0a  |the entire  zip.|
00005a90  09 20 20 20 20 20 20 61  72 63 68 69 76 65 2e 09  |.      archive..|
00005aa0  54 68 65 20 63 6f 6d 6d  65 6e 74 20 69 73 20 65  |The comment is e|
00005ab0  6e 64 65 64 20 62 79 20  61 20 6c 69 6e 65 20 63  |nded by a line c|
00005ac0  6f 6e 74 61 69 6e 69 6e  67 0a 09 20 20 20 20 20  |ontaining..     |
00005ad0  20 6a 75 73 74 20 61 20  70 65 72 69 6f 64 2c 20  | just a period, |
00005ae0  6f 72 20 61 6e 20 65 6e  64 20 6f 66 20 66 69 6c  |or an end of fil|
00005af0  65 20 63 6f 6e 64 69 74  69 6f 6e 20 20 28 5e 44  |e condition  (^D|
00005b00  20 20 6f 6e 0a 09 20 20  20 20 20 20 55 4e 49 58  |  on..      UNIX|
00005b10  2c 20 5e 5a 20 6f 6e 20  4d 53 44 4f 53 2c 20 4f  |, ^Z on MSDOS, O|
00005b20  53 2f 32 2c 20 61 6e 64  20 56 41 58 2f 56 4d 53  |S/2, and VAX/VMS|
00005b30  29 2e 20 20 54 68 65 20  63 6f 6d 6d 65 6e 74 0a  |).  The comment.|
00005b40  09 20 20 20 20 20 20 63  61 6e 20 62 65 20 74 61  |.      can be ta|
00005b50  6b 65 6e 20 66 72 6f 6d  20 61 20 66 69 6c 65 3a  |ken from a file:|
00005b60  0a 0a 09 09 20 20 20 20  20 7a 69 70 20 2d 7a 20  |....     zip -z |
00005b70  66 6f 6f 20 3c 20 66 6f  6f 77 68 61 74 0a 0a 20  |foo < foowhat.. |
00005b80  20 20 20 20 20 20 2d 23  20 20 20 20 20 52 65 67  |      -#     Reg|
00005b90  75 6c 61 74 65 20 74 68  65 20 73 70 65 65 64 20  |ulate the speed |
00005ba0  6f 66 20 63 6f 6d 70 72  65 73 73 69 6f 6e 20 75  |of compression u|
00005bb0  73 69 6e 67 20 74 68 65  20 20 73 70 65 63 69 2d  |sing the  speci-|
00005bc0  0a 09 20 20 20 20 20 20  66 69 65 64 20 20 64 69  |..      fied  di|
00005bd0  67 69 74 20 20 23 2c 20  20 77 68 65 72 65 20 20  |git  #,  where  |
00005be0  2d 30 20 69 6e 64 69 63  61 74 65 73 20 6e 6f 20  |-0 indicates no |
00005bf0  63 6f 6d 70 72 65 73 73  69 6f 6e 0a 09 20 20 20  |compression..   |
00005c00  20 20 20 28 73 74 6f 72  65 20 61 6c 6c 20 66 69  |   (store all fi|
00005c10  6c 65 73 29 2c 20 2d 31  20 69 6e 64 69 63 61 74  |les), -1 indicat|
00005c20  65 73 20 20 74 68 65 20  20 66 61 73 74 65 73 74  |es  the  fastest|
00005c30  20 20 63 6f 6d 2d 0a 09  20 20 20 20 20 20 70 72  |  com-..      pr|
00005c40  65 73 73 69 6f 6e 20 6d  65 74 68 6f 64 20 28 6c  |ession method (l|
00005c50  65 73 73 20 63 6f 6d 70  72 65 73 73 69 6f 6e 29  |ess compression)|
00005c60  20 61 6e 64 20 2d 39 20  69 6e 64 69 63 61 74 65  | and -9 indicate|
00005c70  73 0a 09 20 20 20 20 20  20 74 68 65 20 73 6c 6f  |s..      the slo|
00005c80  77 65 73 74 20 63 6f 6d  70 72 65 73 73 69 6f 6e  |west compression|
00005c90  20 20 6d 65 74 68 6f 64  20 20 28 6f 70 74 69 6d  |  method  (optim|
00005ca0  61 6c 09 20 63 6f 6d 70  72 65 73 2d 0a 09 20 20  |al. compres-..  |
00005cb0  20 20 20 20 73 69 6f 6e  2c 20 20 69 67 6e 6f 72  |    sion,  ignor|
00005cc0  65 73 20 20 74 68 65 20  20 73 75 66 66 69 78 20  |es  the  suffix |
00005cd0  6c 69 73 74 29 2e 20 54  68 65 20 64 65 66 61 75  |list). The defau|
00005ce0  6c 74 20 63 6f 6d 2d 0a  09 20 20 20 20 20 20 70  |lt com-..      p|
00005cf0  72 65 73 73 69 6f 6e 20  6c 65 76 65 6c 20 69 73  |ression level is|
00005d00  20 2d 36 2e 0a 0a 20 20  20 20 20 20 20 2d 40 20  | -6...       -@ |
00005d10  20 20 20 20 54 61 6b 65  20 74 68 65 20 6c 69 73  |    Take the lis|
00005d20  74 20 6f 66 20 69 6e 70  75 74 20 66 69 6c 65 73  |t of input files|
00005d30  20 66 72 6f 6d 09 20 73  74 61 6e 64 61 72 64 20  | from. standard |
00005d40  20 69 6e 70 75 74 2e 0a  09 20 20 20 20 20 20 4f  | input...      O|
00005d50  6e 6c 79 20 6f 6e 65 20  66 69 6c 65 6e 61 6d 65  |nly one filename|
00005d60  20 70 65 72 20 6c 69 6e  65 2e 0a 0a 20 20 20 20  | per line...    |
00005d70  20 20 20 2d 24 20 20 20  20 20 49 6e 63 6c 75 64  |   -$     Includ|
00005d80  65 20 20 74 68 65 20 76  6f 6c 75 6d 65 20 6c 61  |e  the volume la|
00005d90  62 65 6c 20 66 6f 72 20  74 68 65 20 74 68 65 20  |bel for the the |
00005da0  64 72 69 76 65 20 68 6f  6c 64 69 6e 67 0a 09 20  |drive holding.. |
00005db0  20 20 20 20 20 74 68 65  20 66 69 72 73 74 20 66  |     the first f|
00005dc0  69 6c 65 20 74 6f 20 62  65 20 63 6f 6d 70 72 65  |ile to be compre|
00005dd0  73 73 65 64 2e 09 49 66  20 20 79 6f 75 09 20 77  |ssed..If  you. w|
00005de0  61 6e 74 20 20 74 6f 0a  09 20 20 20 20 20 20 69  |ant  to..      i|
00005df0  6e 63 6c 75 64 65 20 20  6f 6e 6c 79 20 20 74 68  |nclude  only  th|
00005e00  65 20 20 76 6f 6c 75 6d  65 20 6c 61 62 65 6c 20  |e  volume label |
00005e10  6f 72 20 74 6f 20 66 6f  72 63 65 20 61 20 73 70  |or to force a sp|
00005e20  65 2d 0a 09 20 20 20 20  20 20 63 69 66 69 63 20  |e-..      cific |
00005e30  64 72 69 76 65 2c 20 75  73 65 20 74 68 65 20 64  |drive, use the d|
00005e40  72 69 76 65 20 6e 61 6d  65 20 61 73 20 66 69 72  |rive name as fir|
00005e50  73 74 20 66 69 6c 65 20  6e 61 6d 65 2c 0a 09 20  |st file name,.. |
00005e60  20 20 20 20 20 61 73 20  69 6e 3a 0a 0a 09 09 20  |     as in:.... |
00005e70  20 20 20 20 7a 69 70 20  2d 24 20 66 6f 6f 20 61  |    zip -$ foo a|
00005e80  3a 20 63 3a 62 61 72 0a  0a 09 20 20 20 20 20 20  |: c:bar...      |
00005e90  54 68 69 73 20 20 6f 70  74 69 6f 6e 20 20 69 73  |This  option  is|
00005ea0  09 65 66 66 65 63 74 69  76 65 20 20 6f 6e 20 20  |.effective  on  |
00005eb0  73 6f 6d 65 20 20 73 79  73 74 65 6d 73 20 6f 6e  |some  systems on|
00005ec0  6c 79 0a 09 20 20 20 20  20 20 28 4d 53 44 4f 53  |ly..      (MSDOS|
00005ed0  20 61 6e 64 20 4f 53 2f  32 29 3b 20 69 74 20 69  | and OS/2); it i|
00005ee0  73 20 69 67 6e 6f 72 65  64 20 6f 6e 20 55 6e 69  |s ignored on Uni|
00005ef0  78 2e 0a 0a 45 58 41 4d  50 4c 45 53 0a 20 20 20  |x...EXAMPLES.   |
00005f00  20 20 20 20 54 68 65 20  73 69 6d 70 6c 65 73 74  |    The simplest|
00005f10  20 65 78 61 6d 70 6c 65  3a 0a 0a 09 20 20 20 20  | example:...    |
00005f20  20 20 7a 69 70 20 73 74  75 66 66 20 2a 0a 0a 20  |  zip stuff *.. |
00005f30  20 20 20 20 20 20 63 72  65 61 74 65 73 20 74 68  |      creates th|
00005f40  65 20 61 72 63 68 69 76  65 20 73 74 75 66 66 2e  |e archive stuff.|
00005f50  7a 69 70 20 28 61 73 73  75 6d 69 6e 67 20 69 74  |zip (assuming it|
00005f60  20 64 6f 65 73 20 6e 6f  74 20 65 78 69 73 74 29  | does not exist)|
00005f70  0a 20 20 20 20 20 20 20  61 6e 64 20 20 70 75 74  |.       and  put|
00005f80  73 20 61 6c 6c 20 74 68  65 20 66 69 6c 65 73 20  |s all the files |
00005f90  69 6e 20 74 68 65 20 63  75 72 72 65 6e 74 20 64  |in the current d|
00005fa0  69 72 65 63 74 6f 72 79  20 69 6e 20 69 74 2c 20  |irectory in it, |
00005fb0  69 6e 0a 20 20 20 20 20  20 20 63 6f 6d 70 72 65  |in.       compre|
00005fc0  73 73 65 64 20 66 6f 72  6d 20 28 74 68 65 20 2e  |ssed form (the .|
00005fd0  7a 69 70 20 73 75 66 66  69 78 20 69 73 20 20 61  |zip suffix is  a|
00005fe0  64 64 65 64 20 20 61 75  74 6f 6d 61 74 69 63 61  |dded  automatica|
00005ff0  6c 6c 79 2c 0a 20 20 20  20 20 20 20 75 6e 6c 65  |lly,.       unle|
00006000  73 73 20 20 74 68 61 74  20 20 61 72 63 68 69 76  |ss  that  archiv|
00006010  65 20 20 6e 61 6d 65 20  20 67 69 76 65 6e 20 63  |e  name  given c|
00006020  6f 6e 74 61 69 6e 73 20  61 20 64 6f 74 20 61 6c  |ontains a dot al|
00006030  72 65 61 64 79 3b 0a 20  20 20 20 20 20 20 74 68  |ready;.       th|
00006040  69 73 20 61 6c 6c 6f 77  73 20 74 68 65 20 65 78  |is allows the ex|
00006050  70 6c 69 63 69 74 20 73  70 65 63 69 66 69 63 61  |plicit specifica|
00006060  74 69 6f 6e 20 6f 66 20  6f 74 68 65 72 20 73 75  |tion of other su|
00006070  66 66 69 78 65 73 29 2e  0a 0a 20 20 20 20 20 20  |ffixes)...      |
00006080  20 42 65 63 61 75 73 65  09 6f 66 20 20 74 68 65  | Because.of  the|
00006090  20 77 61 79 20 74 68 65  20 73 68 65 6c 6c 20 64  | way the shell d|
000060a0  6f 65 73 20 66 69 6c 65  6e 61 6d 65 20 73 75 62  |oes filename sub|
000060b0  73 74 69 74 75 74 69 6f  6e 2c 0a 20 20 20 20 20  |stitution,.     |
000060c0  20 20 66 69 6c 65 73 20  73 74 61 72 74 69 6e 67  |  files starting|
000060d0  20 77 69 74 68 20 22 2e  22 20 61 72 65 20 6e 6f  | with "." are no|
000060e0  74 20 69 6e 63 6c 75 64  65 64 3b 20 74 6f 20 69  |t included; to i|
000060f0  6e 63 6c 75 64 65 20 74  68 65 73 65 0a 20 20 20  |nclude these.   |
00006100  20 20 20 20 61 73 20 77  65 6c 6c 3a 0a 0a 09 20  |    as well:... |
00006110  20 20 20 20 20 7a 69 70  20 73 74 75 66 66 20 2e  |     zip stuff .|
00006120  2a 20 2a 0a 0a 20 20 20  20 20 20 20 45 76 65 6e  |* *..       Even|
00006130  20 20 74 68 69 73 20 20  77 69 6c 6c 09 20 6e 6f  |  this  will. no|
00006140  74 20 20 69 6e 63 6c 75  64 65 20 61 6e 79 20 73  |t  include any s|
00006150  75 62 64 69 72 65 63 74  6f 72 69 65 73 20 66 72  |ubdirectories fr|
00006160  6f 6d 20 74 68 65 0a 20  20 20 20 20 20 20 63 75  |om the.       cu|
00006170  72 72 65 6e 74 20 64 69  72 65 63 74 6f 72 79 2e  |rrent directory.|
00006180  0a 0a 20 20 20 20 20 20  20 54 6f 20 7a 69 70 20  |..       To zip |
00006190  75 70 20 61 6e 20 65 6e  74 69 72 65 20 64 69 72  |up an entire dir|
000061a0  65 63 74 6f 72 79 2c 20  74 68 65 20 63 6f 6d 6d  |ectory, the comm|
000061b0  61 6e 64 3a 0a 0a 49 6e  66 6f 2d 5a 49 50 09 20  |and:..Info-ZIP. |
000061c0  20 20 20 20 20 20 32 32  20 4a 75 6e 65 20 31 39  |      22 June 19|
000061d0  39 37 20 28 76 32 2e 32  29 09 09 20 20 20 20 20  |97 (v2.2)..     |
000061e0  20 20 31 31 0a 0a 5a 49  50 28 31 4c 29 09 09 09  |  11..ZIP(1L)...|
000061f0  09 09 09 09 20 20 5a 49  50 28 31 4c 29 0a 0a 09  |....  ZIP(1L)...|
00006200  20 20 20 20 20 20 7a 69  70 20 2d 72 20 66 6f 6f  |      zip -r foo|
00006210  20 66 6f 6f 0a 0a 20 20  20 20 20 20 20 63 72 65  | foo..       cre|
00006220  61 74 65 73 20 74 68 65  20 61 72 63 68 69 76 65  |ates the archive|
00006230  20 66 6f 6f 2e 7a 69 70  2c 20 63 6f 6e 74 61 69  | foo.zip, contai|
00006240  6e 69 6e 67 20 61 6c 6c  20 74 68 65 20 66 69 6c  |ning all the fil|
00006250  65 73 20 20 61 6e 64 0a  20 20 20 20 20 20 20 64  |es  and.       d|
00006260  69 72 65 63 74 6f 72 69  65 73 20 20 69 6e 20 74  |irectories  in t|
00006270  68 65 20 64 69 72 65 63  74 6f 72 79 20 66 6f 6f  |he directory foo|
00006280  20 74 68 61 74 20 69 73  20 63 6f 6e 74 61 69 6e  | that is contain|
00006290  65 64 20 77 69 74 68 69  6e 0a 20 20 20 20 20 20  |ed within.      |
000062a0  20 74 68 65 20 63 75 72  72 65 6e 74 20 64 69 72  | the current dir|
000062b0  65 63 74 6f 72 79 2e 0a  0a 20 20 20 20 20 20 20  |ectory...       |
000062c0  59 6f 75 20 6d 61 79 20  77 61 6e 74 20 74 6f 20  |You may want to |
000062d0  6d 61 6b 65 20 61 20 7a  69 70 20 61 72 63 68 69  |make a zip archi|
000062e0  76 65 20 74 68 61 74 20  63 6f 6e 74 61 69 6e 73  |ve that contains|
000062f0  20 74 68 65 20 66 69 6c  65 73 0a 20 20 20 20 20  | the files.     |
00006300  20 20 69 6e 20 20 66 6f  6f 2c 09 20 77 69 74 68  |  in  foo,. with|
00006310  6f 75 74 20 20 72 65 63  6f 72 64 69 6e 67 20 74  |out  recording t|
00006320  68 65 20 64 69 72 65 63  74 6f 72 79 20 6e 61 6d  |he directory nam|
00006330  65 2c 20 66 6f 6f 2e 20  20 59 6f 75 0a 20 20 20  |e, foo.  You.   |
00006340  20 20 20 20 63 61 6e 20  75 73 65 20 74 68 65 20  |    can use the |
00006350  2d 6a 20 6f 70 74 69 6f  6e 20 74 6f 20 6c 65 61  |-j option to lea|
00006360  76 65 20 6f 66 66 20 74  68 65 20 70 61 74 68 73  |ve off the paths|
00006370  2c 20 61 73 20 69 6e 3a  0a 0a 09 20 20 20 20 20  |, as in:...     |
00006380  20 7a 69 70 20 2d 6a 20  66 6f 6f 20 66 6f 6f 2f  | zip -j foo foo/|
00006390  2a 0a 0a 20 20 20 20 20  20 20 49 66 20 79 6f 75  |*..       If you|
000063a0  20 61 72 65 20 73 68 6f  72 74 20 6f 6e 20 64 69  | are short on di|
000063b0  73 6b 20 73 70 61 63 65  2c 20 79 6f 75 20 6d 69  |sk space, you mi|
000063c0  67 68 74 20 6e 6f 74 20  68 61 76 65 20 20 65 6e  |ght not have  en|
000063d0  6f 75 67 68 0a 20 20 20  20 20 20 20 72 6f 6f 6d  |ough.       room|
000063e0  20 20 74 6f 09 20 68 6f  6c 64 20 20 62 6f 74 68  |  to. hold  both|
000063f0  20 74 68 65 20 6f 72 69  67 69 6e 61 6c 20 64 69  | the original di|
00006400  72 65 63 74 6f 72 79 20  61 6e 64 20 74 68 65 20  |rectory and the |
00006410  63 6f 72 72 65 2d 0a 20  20 20 20 20 20 20 73 70  |corre-.       sp|
00006420  6f 6e 64 69 6e 67 20 63  6f 6d 70 72 65 73 73 65  |onding compresse|
00006430  64 20 7a 69 70 20 61 72  63 68 69 76 65 2e 09 20  |d zip archive.. |
00006440  49 6e 20 74 68 69 73 20  20 63 61 73 65 2c 09 20  |In this  case,. |
00006450  79 6f 75 20 20 63 61 6e  0a 20 20 20 20 20 20 20  |you  can.       |
00006460  63 72 65 61 74 65 20 20  74 68 65 20 20 61 72 63  |create  the  arc|
00006470  68 69 76 65 20 69 6e 20  73 74 65 70 73 20 75 73  |hive in steps us|
00006480  69 6e 67 20 74 68 65 20  2d 6d 20 6f 70 74 69 6f  |ing the -m optio|
00006490  6e 2e 20 20 49 66 20 66  6f 6f 0a 20 20 20 20 20  |n.  If foo.     |
000064a0  20 20 63 6f 6e 74 61 69  6e 73 20 74 68 65 20 73  |  contains the s|
000064b0  75 62 64 69 72 65 63 74  6f 72 69 65 73 20 74 6f  |ubdirectories to|
000064c0  6d 2c 20 64 69 63 6b 2c  20 61 6e 64 20 68 61 72  |m, dick, and har|
000064d0  72 79 2c 20 79 6f 75 20  63 61 6e 3a 0a 0a 09 20  |ry, you can:... |
000064e0  20 20 20 20 20 7a 69 70  20 2d 72 6d 20 66 6f 6f  |     zip -rm foo|
000064f0  20 66 6f 6f 2f 74 6f 6d  0a 09 20 20 20 20 20 20  | foo/tom..      |
00006500  7a 69 70 20 2d 72 6d 20  66 6f 6f 20 66 6f 6f 2f  |zip -rm foo foo/|
00006510  64 69 63 6b 0a 09 20 20  20 20 20 20 7a 69 70 20  |dick..      zip |
00006520  2d 72 6d 20 66 6f 6f 20  66 6f 6f 2f 68 61 72 72  |-rm foo foo/harr|
00006530  79 0a 0a 20 20 20 20 20  20 20 77 68 65 72 65 20  |y..       where |
00006540  20 74 68 65 20 66 69 72  73 74 20 63 6f 6d 6d 61  | the first comma|
00006550  6e 64 20 63 72 65 61 74  65 73 20 66 6f 6f 2e 7a  |nd creates foo.z|
00006560  69 70 2c 20 61 6e 64 20  74 68 65 20 6e 65 78 74  |ip, and the next|
00006570  20 74 77 6f 0a 20 20 20  20 20 20 20 61 64 64 20  | two.       add |
00006580  74 6f 20 69 74 2e 20 20  41 74 20 74 68 65 20 63  |to it.  At the c|
00006590  6f 6d 70 6c 65 74 69 6f  6e 20 6f 66 09 20 65 61  |ompletion of. ea|
000065a0  63 68 20 20 7a 69 70 20  20 63 6f 6d 6d 61 6e 64  |ch  zip  command|
000065b0  2c 20 20 74 68 65 0a 20  20 20 20 20 20 20 6c 61  |,  the.       la|
000065c0  73 74 20 20 63 72 65 61  74 65 64 20 61 72 63 68  |st  created arch|
000065d0  69 76 65 20 69 73 20 64  65 6c 65 74 65 64 2c 20  |ive is deleted, |
000065e0  6d 61 6b 69 6e 67 20 72  6f 6f 6d 20 66 6f 72 20  |making room for |
000065f0  74 68 65 20 6e 65 78 74  0a 20 20 20 20 20 20 20  |the next.       |
00006600  7a 69 70 20 63 6f 6d 6d  61 6e 64 20 74 6f 20 66  |zip command to f|
00006610  75 6e 63 74 69 6f 6e 2e  0a 0a 50 41 54 54 45 52  |unction...PATTER|
00006620  4e 20 4d 41 54 43 48 49  4e 47 0a 20 20 20 20 20  |N MATCHING.     |
00006630  20 20 54 68 69 73 20 73  65 63 74 69 6f 6e 20 61  |  This section a|
00006640  70 70 6c 69 65 73 20 6f  6e 6c 79 20 74 6f 20 55  |pplies only to U|
00006650  4e 49 58 2e 20 20 57 61  74 63 68 20 74 68 69 73  |NIX.  Watch this|
00006660  20 20 73 70 61 63 65 20  20 66 6f 72 0a 20 20 20  |  space  for.   |
00006670  20 20 20 20 64 65 74 61  69 6c 73 20 6f 6e 20 4d  |    details on M|
00006680  53 44 4f 53 20 61 6e 64  20 56 4d 53 20 6f 70 65  |SDOS and VMS ope|
00006690  72 61 74 69 6f 6e 2e 0a  0a 20 20 20 20 20 20 20  |ration...       |
000066a0  54 68 65 20 20 55 4e 49  58 20 20 73 68 65 6c 6c  |The  UNIX  shell|
000066b0  73 20 28 73 68 28 31 29  20 61 6e 64 20 63 73 68  |s (sh(1) and csh|
000066c0  28 31 29 29 20 64 6f 20  66 69 6c 65 6e 61 6d 65  |(1)) do filename|
000066d0  20 73 75 62 73 74 69 74  75 2d 0a 20 20 20 20 20  | substitu-.     |
000066e0  20 20 74 69 6f 6e 20 6f  6e 20 63 6f 6d 6d 61 6e  |  tion on comman|
000066f0  64 20 61 72 67 75 6d 65  6e 74 73 2e 20 20 54 68  |d arguments.  Th|
00006700  65 20 73 70 65 63 69 61  6c 20 63 68 61 72 61 63  |e special charac|
00006710  74 65 72 73 20 61 72 65  3a 0a 0a 20 20 20 20 20  |ters are:..     |
00006720  20 20 3f 20 20 20 20 20  20 6d 61 74 63 68 20 61  |  ?      match a|
00006730  6e 79 20 73 69 6e 67 6c  65 20 63 68 61 72 61 63  |ny single charac|
00006740  74 65 72 0a 0a 20 20 20  20 20 20 20 2a 20 20 20  |ter..       *   |
00006750  20 20 20 6d 61 74 63 68  20 61 6e 79 20 6e 75 6d  |   match any num|
00006760  62 65 72 20 6f 66 20 63  68 61 72 61 63 74 65 72  |ber of character|
00006770  73 20 28 69 6e 63 6c 75  64 69 6e 67 20 6e 6f 6e  |s (including non|
00006780  65 29 0a 0a 20 20 20 20  20 20 20 5b 5d 20 20 20  |e)..       []   |
00006790  20 20 6d 61 74 63 68 20  61 6e 79 20 63 68 61 72  |  match any char|
000067a0  61 63 74 65 72 20 69 6e  20 74 68 65 20 72 61 6e  |acter in the ran|
000067b0  67 65 09 69 6e 64 69 63  61 74 65 64 20 20 77 69  |ge.indicated  wi|
000067c0  74 68 69 6e 0a 09 20 20  20 20 20 20 74 68 65 20  |thin..      the |
000067d0  62 72 61 63 6b 65 74 73  20 28 65 78 61 6d 70 6c  |brackets (exampl|
000067e0  65 3a 20 5b 61 2d 66 5d  2c 20 5b 30 2d 39 5d 29  |e: [a-f], [0-9])|
000067f0  2e 0a 0a 20 20 20 20 20  20 20 57 68 65 6e 20 20  |...       When  |
00006800  74 68 65 73 65 20 20 63  68 61 72 61 63 74 65 72  |these  character|
00006810  73 09 61 72 65 20 20 65  6e 63 6f 75 6e 74 65 72  |s.are  encounter|
00006820  65 64 20 20 28 77 69 74  68 6f 75 74 20 20 62 65  |ed  (without  be|
00006830  69 6e 67 0a 20 20 20 20  20 20 20 65 73 63 61 70  |ing.       escap|
00006840  65 64 20 77 69 74 68 20  61 20 62 61 63 6b 73 6c  |ed with a backsl|
00006850  61 73 68 20 6f 72 20 71  75 6f 74 65 73 29 2c 20  |ash or quotes), |
00006860  74 68 65 20 73 68 65 6c  6c 20 20 77 69 6c 6c 20  |the shell  will |
00006870  20 6c 6f 6f 6b 0a 20 20  20 20 20 20 20 66 6f 72  | look.       for|
00006880  20 66 69 6c 65 73 20 72  65 6c 61 74 69 76 65 20  | files relative |
00006890  74 6f 20 74 68 65 20 63  75 72 72 65 6e 74 20 70  |to the current p|
000068a0  61 74 68 20 74 68 61 74  20 6d 61 74 63 68 20 74  |ath that match t|
000068b0  68 65 20 70 61 74 2d 0a  20 20 20 20 20 20 20 74  |he pat-.       t|
000068c0  65 72 6e 2c 20 61 6e 64  20 72 65 70 6c 61 63 65  |ern, and replace|
000068d0  20 74 68 65 20 61 72 67  75 6d 65 6e 74 20 77 69  | the argument wi|
000068e0  74 68 20 61 20 6c 69 73  74 20 20 6f 66 20 20 74  |th a list  of  t|
000068f0  68 65 20 20 6e 61 6d 65  73 0a 20 20 20 20 20 20  |he  names.      |
00006900  20 74 68 61 74 20 6d 61  74 63 68 65 64 2e 0a 0a  | that matched...|
00006910  20 20 20 20 20 20 20 54  68 65 20 7a 69 70 20 70  |       The zip p|
00006920  72 6f 67 72 61 6d 20 63  61 6e 20 64 6f 20 74 68  |rogram can do th|
00006930  65 20 73 61 6d 65 20 6d  61 74 63 68 69 6e 67 20  |e same matching |
00006940  6f 6e 20 6e 61 6d 65 73  20 74 68 61 74 20 61 72  |on names that ar|
00006950  65 0a 20 20 20 20 20 20  20 69 6e 20 74 68 65 20  |e.       in the |
00006960  7a 69 70 20 61 72 63 68  69 76 65 20 62 65 69 6e  |zip archive bein|
00006970  67 20 6d 6f 64 69 66 69  65 64 20 6f 72 2c 20 69  |g modified or, i|
00006980  6e 20 74 68 65 20 63 61  73 65 20 20 6f 66 20 20  |n the case  of  |
00006990  74 68 65 0a 20 20 20 20  20 20 20 2d 78 20 28 65  |the.       -x (e|
000069a0  78 63 6c 75 64 65 29 20  6f 72 20 2d 69 20 28 69  |xclude) or -i (i|
000069b0  6e 63 6c 75 64 65 29 20  6f 70 74 69 6f 6e 73 2c  |nclude) options,|
000069c0  20 6f 6e 20 74 68 65 20  6c 69 73 74 20 6f 66 20  | on the list of |
000069d0  66 69 6c 65 73 0a 20 20  20 20 20 20 20 74 6f 20  |files.       to |
000069e0  62 65 20 6f 70 65 72 61  74 65 64 20 6f 6e 2c 20  |be operated on, |
000069f0  62 79 20 75 73 69 6e 67  20 62 61 63 6b 73 6c 61  |by using backsla|
00006a00  73 68 65 73 20 6f 72 20  71 75 6f 74 65 73 20 74  |shes or quotes t|
00006a10  6f 20 20 74 65 6c 6c 0a  20 20 20 20 20 20 20 74  |o  tell.       t|
00006a20  68 65 20 20 73 68 65 6c  6c 20 6e 6f 74 20 74 6f  |he  shell not to|
00006a30  20 64 6f 20 74 68 65 20  6e 61 6d 65 20 65 78 70  | do the name exp|
00006a40  61 6e 73 69 6f 6e 2e 09  20 49 6e 20 67 65 6e 65  |ansion.. In gene|
00006a50  72 61 6c 2c 20 77 68 65  6e 0a 20 20 20 20 20 20  |ral, when.      |
00006a60  20 7a 69 70 20 65 6e 63  6f 75 6e 74 65 72 73 20  | zip encounters |
00006a70  61 20 6e 61 6d 65 20 69  6e 20 74 68 65 20 6c 69  |a name in the li|
00006a80  73 74 20 6f 66 20 66 69  6c 65 73 20 74 6f 20 64  |st of files to d|
00006a90  6f 2c 20 69 74 20 66 69  72 73 74 0a 20 20 20 20  |o, it first.    |
00006aa0  20 20 20 6c 6f 6f 6b 73  20 66 6f 72 20 74 68 65  |   looks for the|
00006ab0  20 6e 61 6d 65 20 69 6e  20 74 68 65 20 66 69 6c  | name in the fil|
00006ac0  65 20 73 79 73 74 65 6d  2e 20 20 49 66 20 69 74  |e system.  If it|
00006ad0  20 66 69 6e 64 73 20 69  74 2c 20 69 74 0a 0a 49  | finds it, it..I|
00006ae0  6e 66 6f 2d 5a 49 50 09  20 20 20 20 20 20 20 32  |nfo-ZIP.       2|
00006af0  32 20 4a 75 6e 65 20 31  39 39 37 20 28 76 32 2e  |2 June 1997 (v2.|
00006b00  32 29 09 09 20 20 20 20  20 20 20 31 32 0a 0a 5a  |2)..       12..Z|
00006b10  49 50 28 31 4c 29 09 09  09 09 09 09 09 20 20 5a  |IP(1L).......  Z|
00006b20  49 50 28 31 4c 29 0a 0a  20 20 20 20 20 20 20 74  |IP(1L)..       t|
00006b30  68 65 6e 20 61 64 64 73  20 69 74 20 74 6f 20 74  |hen adds it to t|
00006b40  68 65 20 6c 69 73 74 20  6f 66 20 66 69 6c 65 73  |he list of files|
00006b50  20 74 6f 20 64 6f 2e 09  20 49 66 20 69 74 09 64  | to do.. If it.d|
00006b60  6f 65 73 20 20 6e 6f 74  0a 20 20 20 20 20 20 20  |oes  not.       |
00006b70  66 69 6e 64 20 20 69 74  2c 20 20 69 74 20 20 6c  |find  it,  it  l|
00006b80  6f 6f 6b 73 20 66 6f 72  20 74 68 65 20 6e 61 6d  |ooks for the nam|
00006b90  65 20 69 6e 20 74 68 65  20 7a 69 70 20 61 72 63  |e in the zip arc|
00006ba0  68 69 76 65 20 62 65 69  6e 67 0a 20 20 20 20 20  |hive being.     |
00006bb0  20 20 6d 6f 64 69 66 69  65 64 20 28 69 66 20 69  |  modified (if i|
00006bc0  74 20 65 78 69 73 74 73  29 2c 20 75 73 69 6e 67  |t exists), using|
00006bd0  20 74 68 65 20 70 61 74  74 65 72 6e 20 6d 61 74  | the pattern mat|
00006be0  63 68 69 6e 67 20 20 63  68 61 72 2d 0a 20 20 20  |ching  char-.   |
00006bf0  20 20 20 20 61 63 74 65  72 73 20 20 64 65 73 63  |    acters  desc|
00006c00  72 69 62 65 64 20 20 61  62 6f 76 65 2c 20 20 69  |ribed  above,  i|
00006c10  66 20 70 72 65 73 65 6e  74 2e 20 20 46 6f 72 20  |f present.  For |
00006c20  65 61 63 68 20 6d 61 74  63 68 2c 20 69 74 0a 20  |each match, it. |
00006c30  20 20 20 20 20 20 77 69  6c 6c 20 61 64 64 20 74  |      will add t|
00006c40  68 61 74 20 6e 61 6d 65  20 74 6f 20 74 68 65 20  |hat name to the |
00006c50  6c 69 73 74 20 6f 66 20  66 69 6c 65 73 20 74 6f  |list of files to|
00006c60  20 20 62 65 20 20 70 72  6f 63 65 73 73 65 64 2c  |  be  processed,|
00006c70  0a 20 20 20 20 20 20 20  75 6e 6c 65 73 73 20 20  |.       unless  |
00006c80  74 68 69 73 20 6e 61 6d  65 20 6d 61 74 63 68 65  |this name matche|
00006c90  73 20 6f 6e 65 20 67 69  76 65 6e 20 77 69 74 68  |s one given with|
00006ca0  20 74 68 65 20 2d 78 20  6f 70 74 69 6f 6e 2c 20  | the -x option, |
00006cb0  6f 72 0a 20 20 20 20 20  20 20 64 6f 65 73 20 6e  |or.       does n|
00006cc0  6f 74 20 6d 61 74 63 68  20 61 6e 79 20 6e 61 6d  |ot match any nam|
00006cd0  65 20 67 69 76 65 6e 20  77 69 74 68 20 74 68 65  |e given with the|
00006ce0  20 2d 69 20 6f 70 74 69  6f 6e 2e 0a 0a 20 20 20  | -i option...   |
00006cf0  20 20 20 20 54 68 65 20  70 61 74 74 65 72 6e 20  |    The pattern |
00006d00  6d 61 74 63 68 69 6e 67  20 69 6e 63 6c 75 64 65  |matching include|
00006d10  73 20 74 68 65 20 70 61  74 68 2c 09 61 6e 64 20  |s the path,.and |
00006d20  20 73 6f 09 20 70 61 74  74 65 72 6e 73 0a 20 20  | so. patterns.  |
00006d30  20 20 20 20 20 6c 69 6b  65 20 5c 2a 2e 6f 20 6d  |     like \*.o m|
00006d40  61 74 63 68 20 6e 61 6d  65 73 20 74 68 61 74 20  |atch names that |
00006d50  65 6e 64 20 69 6e 20 22  2e 6f 22 2c 20 6e 6f 20  |end in ".o", no |
00006d60  6d 61 74 74 65 72 20 77  68 61 74 20 74 68 65 0a  |matter what the.|
00006d70  20 20 20 20 20 20 20 70  61 74 68 20 70 72 65 66  |       path pref|
00006d80  69 78 20 69 73 2e 09 4e  6f 74 65 20 20 74 68 61  |ix is..Note  tha|
00006d90  74 20 20 74 68 65 09 20  62 61 63 6b 73 6c 61 73  |t  the. backslas|
00006da0  68 20 20 6d 75 73 74 20  20 70 72 65 63 65 64 65  |h  must  precede|
00006db0  0a 20 20 20 20 20 20 20  65 76 65 72 79 20 20 73  |.       every  s|
00006dc0  70 65 63 69 61 6c 20 20  63 68 61 72 61 63 74 65  |pecial  characte|
00006dd0  72 20 28 69 2e 65 2e 20  3f 2a 5b 5d 29 2c 20 6f  |r (i.e. ?*[]), o|
00006de0  72 20 74 68 65 20 65 6e  74 69 72 65 20 61 72 67  |r the entire arg|
00006df0  75 2d 0a 20 20 20 20 20  20 20 6d 65 6e 74 20 6d  |u-.       ment m|
00006e00  75 73 74 20 62 65 20 65  6e 63 6c 6f 73 65 64 20  |ust be enclosed |
00006e10  69 6e 20 64 6f 75 62 6c  65 20 71 75 6f 74 65 73  |in double quotes|
00006e20  20 28 22 22 29 2e 0a 0a  20 20 20 20 20 20 20 49  | ("")...       I|
00006e30  6e 20 67 65 6e 65 72 61  6c 2c 20 75 73 65 20 62  |n general, use b|
00006e40  61 63 6b 73 6c 61 73 68  20 20 74 6f 20 20 6d 61  |ackslash  to  ma|
00006e50  6b 65 20 20 7a 69 70 09  20 64 6f 20 20 74 68 65  |ke  zip. do  the|
00006e60  20 20 70 61 74 74 65 72  6e 0a 20 20 20 20 20 20  |  pattern.      |
00006e70  20 6d 61 74 63 68 69 6e  67 09 20 77 69 74 68 20  | matching. with |
00006e80  20 74 68 65 20 20 2d 66  20 28 66 72 65 73 68 65  | the  -f (freshe|
00006e90  6e 29 20 61 6e 64 20 2d  64 20 28 64 65 6c 65 74  |n) and -d (delet|
00006ea0  65 29 20 6f 70 74 69 6f  6e 73 2c 0a 20 20 20 20  |e) options,.    |
00006eb0  20 20 20 61 6e 64 20 73  6f 6d 65 74 69 6d 65 73  |   and sometimes|
00006ec0  20 61 66 74 65 72 20 74  68 65 20 2d 78 20 28 65  | after the -x (e|
00006ed0  78 63 6c 75 64 65 29 20  6f 70 74 69 6f 6e 20 77  |xclude) option w|
00006ee0  68 65 6e 20 75 73 65 64  20 77 69 74 68 0a 20 20  |hen used with.  |
00006ef0  20 20 20 20 20 61 6e 20  61 70 70 72 6f 70 72 69  |     an appropri|
00006f00  61 74 65 20 6f 70 65 72  61 74 69 6f 6e 20 28 61  |ate operation (a|
00006f10  64 64 2c 20 2d 75 2c 20  2d 66 2c 20 6f 72 20 2d  |dd, -u, -f, or -|
00006f20  64 29 2e 0a 0a 53 45 45  20 41 4c 53 4f 0a 20 20  |d)...SEE ALSO.  |
00006f30  20 20 20 20 20 63 6f 6d  70 72 65 73 73 28 31 29  |     compress(1)|
00006f40  2c 20 73 68 61 72 28 31  4c 29 2c 20 74 61 72 28  |, shar(1L), tar(|
00006f50  31 29 2c 20 75 6e 7a 69  70 28 31 4c 29 2c 20 67  |1), unzip(1L), g|
00006f60  7a 69 70 28 31 4c 29 0a  0a 44 49 41 47 4e 4f 53  |zip(1L)..DIAGNOS|
00006f70  54 49 43 53 0a 20 20 20  20 20 20 20 54 68 65 20  |TICS.       The |
00006f80  20 65 78 69 74 20 20 73  74 61 74 75 73 20 20 28  | exit  status  (|
00006f90  6f 72 20 20 65 72 72 6f  72 20 6c 65 76 65 6c 29  |or  error level)|
00006fa0  20 61 70 70 72 6f 78 69  6d 61 74 65 73 20 74 68  | approximates th|
00006fb0  65 20 65 78 69 74 0a 20  20 20 20 20 20 20 63 6f  |e exit.       co|
00006fc0  64 65 73 20 64 65 66 69  6e 65 64 20 62 79 20 50  |des defined by P|
00006fd0  4b 57 41 52 45 20 61 6e  64 20 74 61 6b 65 73 20  |KWARE and takes |
00006fe0  6f 6e 20 74 68 65 20 66  6f 6c 6c 6f 77 69 6e 67  |on the following|
00006ff0  20 76 61 6c 75 65 73 2c  0a 20 20 20 20 20 20 20  | values,.       |
00007000  65 78 63 65 70 74 20 75  6e 64 65 72 20 56 4d 53  |except under VMS|
00007010  3a 0a 0a 09 20 20 20 20  20 20 30 09 20 20 20 20  |:...      0.    |
00007020  20 6e 6f 72 6d 61 6c 3b  20 6e 6f 20 65 72 72 6f  | normal; no erro|
00007030  72 73 20 6f 72 20 77 61  72 6e 69 6e 67 73 20 64  |rs or warnings d|
00007040  65 74 65 63 74 65 64 2e  0a 0a 09 20 20 20 20 20  |etected....     |
00007050  20 32 09 20 20 20 20 20  75 6e 65 78 70 65 63 74  | 2.     unexpect|
00007060  65 64 20 65 6e 64 20 6f  66 20 7a 69 70 20 66 69  |ed end of zip fi|
00007070  6c 65 2e 0a 0a 09 20 20  20 20 20 20 33 09 20 20  |le....      3.  |
00007080  20 20 20 61 09 67 65 6e  65 72 69 63 09 20 65 72  |   a.generic. er|
00007090  72 6f 72 09 69 6e 20 74  68 65 20 7a 69 70 66 69  |ror.in the zipfi|
000070a0  6c 65 20 66 6f 72 6d 61  74 20 77 61 73 0a 09 09  |le format was...|
000070b0  20 20 20 20 20 64 65 74  65 63 74 65 64 2e 09 20  |     detected.. |
000070c0  50 72 6f 63 65 73 73 69  6e 67 20 20 6d 61 79 20  |Processing  may |
000070d0  20 68 61 76 65 09 63 6f  6d 70 6c 65 74 65 64 0a  | have.completed.|
000070e0  09 09 20 20 20 20 20 73  75 63 63 65 73 73 66 75  |..     successfu|
000070f0  6c 6c 79 20 20 61 6e 79  77 61 79 3b 20 20 73 6f  |lly  anyway;  so|
00007100  6d 65 20 20 62 72 6f 6b  65 6e 20 7a 69 70 66 69  |me  broken zipfi|
00007110  6c 65 73 0a 09 09 20 20  20 20 20 63 72 65 61 74  |les...     creat|
00007120  65 64 20 62 79 20 6f 74  68 65 72 20 61 72 63 68  |ed by other arch|
00007130  69 76 65 72 73 20 68 61  76 65 20 73 69 6d 70 6c  |ivers have simpl|
00007140  65 20 77 6f 72 6b 2d 0a  09 09 20 20 20 20 20 61  |e work-...     a|
00007150  72 6f 75 6e 64 73 2e 0a  0a 09 20 20 20 20 20 20  |rounds....      |
00007160  34 09 20 20 20 20 20 7a  69 70 20 77 61 73 20 75  |4.     zip was u|
00007170  6e 61 62 6c 65 20 74 6f  20 61 6c 6c 6f 63 61 74  |nable to allocat|
00007180  65 20 6d 65 6d 6f 72 79  20 66 6f 72 20 6f 6e 65  |e memory for one|
00007190  20 6f 72 0a 09 09 20 20  20 20 20 6d 6f 72 65 20  | or...     more |
000071a0  62 75 66 66 65 72 73 20  64 75 72 69 6e 67 20 70  |buffers during p|
000071b0  72 6f 67 72 61 6d 20 20  69 6e 69 74 69 61 6c 69  |rogram  initiali|
000071c0  7a 61 74 69 6f 6e 2e 0a  0a 09 20 20 20 20 20 20  |zation....      |
000071d0  35 09 20 20 20 20 20 61  09 73 65 76 65 72 65 09  |5.     a.severe.|
000071e0  65 72 72 6f 72 20 20 69  6e 20 20 74 68 65 20 7a  |error  in  the z|
000071f0  69 70 66 69 6c 65 20 66  6f 72 6d 61 74 20 77 61  |ipfile format wa|
00007200  73 0a 09 09 20 20 20 20  20 64 65 74 65 63 74 65  |s...     detecte|
00007210  64 2e 09 50 72 6f 63 65  73 73 69 6e 67 20 70 72  |d..Processing pr|
00007220  6f 62 61 62 6c 79 20 66  61 69 6c 65 64 20 20 69  |obably failed  i|
00007230  6d 6d 65 2d 0a 09 09 20  20 20 20 20 64 69 61 74  |mme-...     diat|
00007240  65 6c 79 2e 0a 0a 09 20  20 20 20 20 20 36 09 20  |ely....      6. |
00007250  20 20 20 20 65 6e 74 72  79 20 74 6f 6f 20 6c 61  |    entry too la|
00007260  72 67 65 20 74 6f 20 62  65 20 73 70 6c 69 74 20  |rge to be split |
00007270  77 69 74 68 20 7a 69 70  73 70 6c 69 74 0a 0a 09  |with zipsplit...|
00007280  20 20 20 20 20 20 37 09  20 20 20 20 20 69 6e 76  |      7.     inv|
00007290  61 6c 69 64 20 63 6f 6d  6d 65 6e 74 20 66 6f 72  |alid comment for|
000072a0  6d 61 74 0a 0a 09 20 20  20 20 20 20 38 09 20 20  |mat...      8.  |
000072b0  20 20 20 7a 69 70 20 2d  54 20 66 61 69 6c 65 64  |   zip -T failed|
000072c0  20 6f 72 20 6f 75 74 20  6f 66 20 6d 65 6d 6f 72  | or out of memor|
000072d0  79 0a 0a 09 20 20 20 20  20 20 39 09 20 20 20 20  |y...      9.    |
000072e0  20 74 68 65 20 20 75 73  65 72 09 61 62 6f 72 74  | the  user.abort|
000072f0  65 64 20 7a 69 70 20 70  72 65 6d 61 74 75 72 65  |ed zip premature|
00007300  6c 79 20 77 69 74 68 20  63 6f 6e 2d 0a 09 09 20  |ly with con-... |
00007310  20 20 20 20 74 72 6f 6c  2d 43 20 28 6f 72 20 73  |    trol-C (or s|
00007320  69 6d 69 6c 61 72 29 0a  0a 09 20 20 20 20 20 20  |imilar)...      |
00007330  31 30 20 20 20 20 20 7a  69 70 20 65 6e 63 6f 75  |10     zip encou|
00007340  6e 74 65 72 65 64 20 61  6e 20 65 72 72 6f 72 20  |ntered an error |
00007350  77 68 69 6c 65 20 75 73  69 6e 67 20 61 20 20 74  |while using a  t|
00007360  65 6d 70 0a 0a 49 6e 66  6f 2d 5a 49 50 09 20 20  |emp..Info-ZIP.  |
00007370  20 20 20 20 20 32 32 20  4a 75 6e 65 20 31 39 39  |     22 June 199|
00007380  37 20 28 76 32 2e 32 29  09 09 20 20 20 20 20 20  |7 (v2.2)..      |
00007390  20 31 33 0a 0a 5a 49 50  28 31 4c 29 09 09 09 09  | 13..ZIP(1L)....|
000073a0  09 09 09 20 20 5a 49 50  28 31 4c 29 0a 0a 09 09  |...  ZIP(1L)....|
000073b0  20 20 20 20 20 66 69 6c  65 0a 0a 09 20 20 20 20  |     file...    |
000073c0  20 20 31 31 20 20 20 20  20 72 65 61 64 20 6f 72  |  11     read or|
000073d0  20 73 65 65 6b 20 65 72  72 6f 72 0a 0a 09 20 20  | seek error...  |
000073e0  20 20 20 20 31 32 20 20  20 20 20 7a 69 70 20 68  |    12     zip h|
000073f0  61 73 20 6e 6f 74 68 69  6e 67 20 74 6f 20 64 6f  |as nothing to do|
00007400  0a 0a 09 20 20 20 20 20  20 31 33 20 20 20 20 20  |...      13     |
00007410  6d 69 73 73 69 6e 67 20  6f 72 20 65 6d 70 74 79  |missing or empty|
00007420  20 7a 69 70 20 66 69 6c  65 0a 0a 09 20 20 20 20  | zip file...    |
00007430  20 20 31 34 20 20 20 20  20 65 72 72 6f 72 20 77  |  14     error w|
00007440  72 69 74 69 6e 67 20 74  6f 20 61 20 66 69 6c 65  |riting to a file|
00007450  0a 0a 09 20 20 20 20 20  20 31 35 20 20 20 20 20  |...      15     |
00007460  7a 69 70 20 77 61 73 20  75 6e 61 62 6c 65 20 74  |zip was unable t|
00007470  6f 20 63 72 65 61 74 65  20 61 20 66 69 6c 65 20  |o create a file |
00007480  74 6f 20 77 72 69 74 65  20 74 6f 0a 0a 09 20 20  |to write to...  |
00007490  20 20 20 20 31 36 20 20  20 20 20 62 61 64 20 63  |    16     bad c|
000074a0  6f 6d 6d 61 6e 64 20 6c  69 6e 65 20 70 61 72 61  |ommand line para|
000074b0  6d 65 74 65 72 73 0a 0a  09 20 20 20 20 20 20 31  |meters...      1|
000074c0  38 20 20 20 20 20 7a 69  70 20 63 6f 75 6c 64 20  |8     zip could |
000074d0  6e 6f 74 20 6f 70 65 6e  20 61 20 73 70 65 63 69  |not open a speci|
000074e0  66 69 65 64 20 66 69 6c  65 20 74 6f 20 72 65 61  |fied file to rea|
000074f0  64 0a 0a 20 20 20 20 20  20 20 56 4d 53 20 20 69  |d..       VMS  i|
00007500  6e 74 65 72 70 72 65 74  73 09 73 74 61 6e 64 61  |nterprets.standa|
00007510  72 64 20 20 55 6e 69 78  09 28 6f 72 20 20 50 43  |rd  Unix.(or  PC|
00007520  29 20 72 65 74 75 72 6e  20 76 61 6c 75 65 73 20  |) return values |
00007530  61 73 0a 20 20 20 20 20  20 20 6f 74 68 65 72 2c  |as.       other,|
00007540  20 73 63 61 72 69 65 72  2d 6c 6f 6f 6b 69 6e 67  | scarier-looking|
00007550  20 74 68 69 6e 67 73 2c  20 73 6f 20 7a 69 70 20  | things, so zip |
00007560  20 69 6e 73 74 65 61 64  20 20 6d 61 70 73 20 20  | instead  maps  |
00007570  74 68 65 6d 0a 20 20 20  20 20 20 20 69 6e 74 6f  |them.       into|
00007580  20 20 56 4d 53 2d 73 74  79 6c 65 09 73 74 61 74  |  VMS-style.stat|
00007590  75 73 09 63 6f 64 65 73  2e 09 54 68 65 20 63 75  |us.codes..The cu|
000075a0  72 72 65 6e 74 20 6d 61  70 70 69 6e 67 20 69 73  |rrent mapping is|
000075b0  20 61 73 0a 20 20 20 20  20 20 20 66 6f 6c 6c 6f  | as.       follo|
000075c0  77 73 3a 09 20 20 31 20  28 73 75 63 63 65 73 73  |ws:.  1 (success|
000075d0  29 20 66 6f 72 20 6e 6f  72 6d 61 6c 20 65 78 69  |) for normal exi|
000075e0  74 2c 0a 09 61 6e 64 20  20 28 30 78 37 66 66 66  |t,..and  (0x7fff|
000075f0  30 30 30 3f 20 20 2b 20  20 31 36 2a 6e 6f 72 6d  |000?  +  16*norm|
00007600  61 6c 5f 7a 69 70 5f 65  78 69 74 5f 73 74 61 74  |al_zip_exit_stat|
00007610  75 73 29 09 20 66 6f 72  20 20 61 6c 6c 0a 20 20  |us). for  all.  |
00007620  20 20 20 20 20 65 72 72  6f 72 73 2c 09 77 68 65  |     errors,.whe|
00007630  72 65 20 20 74 68 65 20  60 3f 27 20 69 73 20 30  |re  the `?' is 0|
00007640  20 28 77 61 72 6e 69 6e  67 29 20 66 6f 72 20 7a  | (warning) for z|
00007650  69 70 20 76 61 6c 75 65  20 31 32 2c 20 32 0a 20  |ip value 12, 2. |
00007660  20 20 20 20 20 20 28 65  72 72 6f 72 29 20 66 6f  |      (error) fo|
00007670  72 20 74 68 65 20 7a 69  70 20 76 61 6c 75 65 73  |r the zip values|
00007680  20 33 2c 20 36 2c 20 37  2c 20 39 2c 20 31 33 2c  | 3, 6, 7, 9, 13,|
00007690  20 31 36 2c 20 31 38 2c  20 20 61 6e 64 09 34 0a  | 16, 18,  and.4.|
000076a0  20 20 20 20 20 20 20 28  66 61 74 61 6c 20 65 72  |       (fatal er|
000076b0  72 6f 72 29 20 66 6f 72  20 74 68 65 20 72 65 6d  |ror) for the rem|
000076c0  61 69 6e 69 6e 67 20 6f  6e 65 73 2e 0a 0a 42 55  |aining ones...BU|
000076d0  47 53 0a 20 20 20 20 20  20 20 7a 69 70 20 20 32  |GS.       zip  2|
000076e0  2e 32 09 20 69 73 20 6e  6f 74 20 63 6f 6d 70 61  |.2. is not compa|
000076f0  74 69 62 6c 65 20 77 69  74 68 20 50 4b 55 4e 5a  |tible with PKUNZ|
00007700  49 50 20 31 2e 31 30 2e  20 55 73 65 20 7a 69 70  |IP 1.10. Use zip|
00007710  20 31 2e 31 0a 20 20 20  20 20 20 20 74 6f 20 70  | 1.1.       to p|
00007720  72 6f 64 75 63 65 20 7a  69 70 20 66 69 6c 65 73  |roduce zip files|
00007730  20 77 68 69 63 68 20 63  61 6e 20 20 62 65 20 20  | which can  be  |
00007740  65 78 74 72 61 63 74 65  64 20 20 62 79 20 20 50  |extracted  by  P|
00007750  4b 55 4e 5a 49 50 0a 20  20 20 20 20 20 20 31 2e  |KUNZIP.       1.|
00007760  31 30 2e 0a 0a 20 20 20  20 20 20 20 7a 69 70 20  |10...       zip |
00007770  20 66 69 6c 65 73 20 20  70 72 6f 64 75 63 65 64  | files  produced|
00007780  20 62 79 20 7a 69 70 20  32 2e 32 20 6d 75 73 74  | by zip 2.2 must|
00007790  20 6e 6f 74 20 62 65 20  75 70 64 61 74 65 64 20  | not be updated |
000077a0  62 79 20 7a 69 70 0a 20  20 20 20 20 20 20 31 2e  |by zip.       1.|
000077b0  31 20 6f 72 20 50 4b 5a  49 50 20 31 2e 31 30 2c  |1 or PKZIP 1.10,|
000077c0  20 69 66 20 74 68 65 79  20 63 6f 6e 74 61 69 6e  | if they contain|
000077d0  20 65 6e 63 72 79 70 74  65 64 20 6d 65 6d 62 65  | encrypted membe|
000077e0  72 73 20 6f 72 20 69 66  0a 20 20 20 20 20 20 20  |rs or if.       |
000077f0  74 68 65 79 20 20 68 61  76 65 20 20 62 65 65 6e  |they  have  been|
00007800  09 20 70 72 6f 64 75 63  65 64 20 20 69 6e 20 61  |. produced  in a|
00007810  20 70 69 70 65 20 6f 72  20 6f 6e 20 61 20 6e 6f  | pipe or on a no|
00007820  6e 2d 73 65 65 6b 61 62  6c 65 0a 20 20 20 20 20  |n-seekable.     |
00007830  20 20 64 65 76 69 63 65  2e 20 54 68 65 20 6f 6c  |  device. The ol|
00007840  64 20 76 65 72 73 69 6f  6e 73 20 6f 66 20 7a 69  |d versions of zi|
00007850  70 20 6f 72 20 50 4b 5a  49 50 20 77 6f 75 6c 64  |p or PKZIP would|
00007860  20 20 63 72 65 61 74 65  20 20 61 6e 0a 20 20 20  |  create  an.   |
00007870  20 20 20 20 61 72 63 68  69 76 65 09 77 69 74 68  |    archive.with|
00007880  20 20 61 6e 20 20 69 6e  63 6f 72 72 65 63 74 20  |  an  incorrect |
00007890  66 6f 72 6d 61 74 2e 20  20 54 68 65 20 6f 6c 64  |format.  The old|
000078a0  20 76 65 72 73 69 6f 6e  73 20 63 61 6e 0a 20 20  | versions can.  |
000078b0  20 20 20 20 20 6c 69 73  74 20 74 68 65 20 63 6f  |     list the co|
000078c0  6e 74 65 6e 74 73 20 6f  66 20 74 68 65 20 7a 69  |ntents of the zi|
000078d0  70 20 66 69 6c 65 20 62  75 74 20 20 63 61 6e 6e  |p file but  cann|
000078e0  6f 74 20 20 65 78 74 72  61 63 74 20 20 69 74 0a  |ot  extract  it.|
000078f0  20 20 20 20 20 20 20 61  6e 79 77 61 79 20 28 62  |       anyway (b|
00007900  65 63 61 75 73 65 20 6f  66 20 74 68 65 20 6e 65  |ecause of the ne|
00007910  77 20 63 6f 6d 70 72 65  73 73 69 6f 6e 20 61 6c  |w compression al|
00007920  67 6f 72 69 74 68 6d 29  2e 20 20 49 66 20 79 6f  |gorithm).  If yo|
00007930  75 0a 20 20 20 20 20 20  20 64 6f 20 6e 6f 74 20  |u.       do not |
00007940  75 73 65 20 65 6e 63 72  79 70 74 69 6f 6e 20 61  |use encryption a|
00007950  6e 64 20 75 73 65 20 72  65 67 75 6c 61 72 20 64  |nd use regular d|
00007960  69 73 6b 20 66 69 6c 65  73 2c 20 20 79 6f 75 20  |isk files,  you |
00007970  20 64 6f 0a 20 20 20 20  20 20 20 6e 6f 74 20 68  | do.       not h|
00007980  61 76 65 20 74 6f 20 63  61 72 65 20 61 62 6f 75  |ave to care abou|
00007990  74 20 74 68 69 73 20 70  72 6f 62 6c 65 6d 2e 0a  |t this problem..|
000079a0  0a 20 20 20 20 20 20 20  55 6e 64 65 72 20 20 56  |.       Under  V|
000079b0  4d 53 2c 20 20 6e 6f 74  09 20 61 6c 6c 20 20 6f  |MS,  not. all  o|
000079c0  66 20 74 68 65 20 6f 64  64 20 66 69 6c 65 20 66  |f the odd file f|
000079d0  6f 72 6d 61 74 73 20 61  72 65 20 74 72 65 61 74  |ormats are treat|
000079e0  65 64 0a 20 20 20 20 20  20 20 70 72 6f 70 65 72  |ed.       proper|
000079f0  6c 79 2e 20 20 4f 6e 6c  79 20 73 74 72 65 61 6d  |ly.  Only stream|
00007a00  2d 4c 46 20 66 6f 72 6d  61 74 20 7a 69 70 20 66  |-LF format zip f|
00007a10  69 6c 65 73 20 61 72 65  20 65 78 70 65 63 74 65  |iles are expecte|
00007a20  64 20 74 6f 0a 20 20 20  20 20 20 20 77 6f 72 6b  |d to.       work|
00007a30  20 20 77 69 74 68 20 20  7a 69 70 2e 09 20 20 4f  |  with  zip..  O|
00007a40  74 68 65 72 73 20 20 63  61 6e 20 20 62 65 20 20  |thers  can  be  |
00007a50  63 6f 6e 76 65 72 74 65  64 20 20 75 73 69 6e 67  |converted  using|
00007a60  20 52 61 68 75 6c 0a 20  20 20 20 20 20 20 44 68  | Rahul.       Dh|
00007a70  65 73 69 27 73 20 42 49  4c 46 20 70 72 6f 67 72  |esi's BILF progr|
00007a80  61 6d 2e 20 20 54 68 69  73 20 76 65 72 73 69 6f  |am.  This versio|
00007a90  6e 20 6f 66 20 7a 69 70  20 68 61 6e 64 6c 65 73  |n of zip handles|
00007aa0  20 73 6f 6d 65 20 6f 66  0a 20 20 20 20 20 20 20  | some of.       |
00007ab0  74 68 65 20 20 63 6f 6e  76 65 72 73 69 6f 6e 20  |the  conversion |
00007ac0  69 6e 74 65 72 6e 61 6c  6c 79 2e 20 20 57 68 65  |internally.  Whe|
00007ad0  6e 20 75 73 69 6e 67 20  4b 65 72 6d 69 74 20 74  |n using Kermit t|
00007ae0  6f 20 74 72 61 6e 73 66  65 72 0a 20 20 20 20 20  |o transfer.     |
00007af0  20 20 7a 69 70 20 66 69  6c 65 73 20 66 72 6f 6d  |  zip files from|
00007b00  20 56 61 78 20 74 6f 20  4d 53 44 4f 53 2c 20 74  | Vax to MSDOS, t|
00007b10  79 70 65 20 22 73 65 74  20 66 69 6c 65 20 74 79  |ype "set file ty|
00007b20  70 65 20 62 6c 6f 63 6b  22 20 6f 6e 0a 20 20 20  |pe block" on.   |
00007b30  20 20 20 20 74 68 65 20  20 56 61 78 2e 20 20 20  |    the  Vax.   |
00007b40  57 68 65 6e 09 20 74 72  61 6e 73 66 65 72 69 6e  |When. transferin|
00007b50  67 20 66 72 6f 6d 20 4d  53 44 4f 53 20 74 6f 20  |g from MSDOS to |
00007b60  56 61 78 2c 20 74 79 70  65 20 22 73 65 74 0a 20  |Vax, type "set. |
00007b70  20 20 20 20 20 20 66 69  6c 65 20 74 79 70 65 20  |      file type |
00007b80  66 69 78 65 64 22 20 6f  6e 20 74 68 65 20 56 61  |fixed" on the Va|
00007b90  78 2e 20 20 49 6e 09 20  62 6f 74 68 20 20 63 61  |x.  In. both  ca|
00007ba0  73 65 73 2c 20 20 74 79  70 65 20 20 22 73 65 74  |ses,  type  "set|
00007bb0  0a 20 20 20 20 20 20 20  66 69 6c 65 20 74 79 70  |.       file typ|
00007bc0  65 20 62 69 6e 61 72 79  22 20 6f 6e 20 4d 53 44  |e binary" on MSD|
00007bd0  4f 53 2e 0a 0a 20 20 20  20 20 20 20 55 6e 64 65  |OS...       Unde|
00007be0  72 20 56 4d 53 2c 20 7a  69 70 20 68 61 6e 67 73  |r VMS, zip hangs|
00007bf0  20 66 6f 72 20 66 69 6c  65 20 73 70 65 63 69 66  | for file specif|
00007c00  69 63 61 74 69 6f 6e 20  74 68 61 74 20 75 73 65  |ication that use|
00007c10  73 20 44 45 43 2d 0a 20  20 20 20 20 20 20 6e 65  |s DEC-.       ne|
00007c20  74 20 73 79 6e 74 61 78  20 66 6f 6f 3a 3a 2a 2e  |t syntax foo::*.|
00007c30  2a 2e 0a 0a 20 20 20 20  20 20 20 4f 6e 20 4f 53  |*...       On OS|
00007c40  2f 32 2c 20 7a 69 70 20  20 63 61 6e 6e 6f 74 20  |/2, zip  cannot |
00007c50  20 6d 61 74 63 68 20 20  73 6f 6d 65 20 20 6e 61  | match  some  na|
00007c60  6d 65 73 2c 20 20 73 75  63 68 09 61 73 20 20 74  |mes,  such.as  t|
00007c70  68 6f 73 65 0a 0a 49 6e  66 6f 2d 5a 49 50 09 20  |hose..Info-ZIP. |
00007c80  20 20 20 20 20 20 32 32  20 4a 75 6e 65 20 31 39  |      22 June 19|
00007c90  39 37 20 28 76 32 2e 32  29 09 09 20 20 20 20 20  |97 (v2.2)..     |
00007ca0  20 20 31 34 0a 0a 5a 49  50 28 31 4c 29 09 09 09  |  14..ZIP(1L)...|
00007cb0  09 09 09 09 20 20 5a 49  50 28 31 4c 29 0a 0a 20  |....  ZIP(1L).. |
00007cc0  20 20 20 20 20 20 69 6e  63 6c 75 64 69 6e 67 20  |      including |
00007cd0  20 61 6e 20 20 65 78 63  6c 61 6d 61 74 69 6f 6e  | an  exclamation|
00007ce0  20 6d 61 72 6b 20 6f 72  20 61 20 68 61 73 68 20  | mark or a hash |
00007cf0  73 69 67 6e 2e 09 54 68  69 73 20 69 73 20 61 0a  |sign..This is a.|
00007d00  20 20 20 20 20 20 20 62  75 67 20 69 6e 20 4f 53  |       bug in OS|
00007d10  2f 32 20 69 74 73 65 6c  66 3a 20 20 74 68 65 09  |/2 itself:  the.|
00007d20  20 33 32 2d 62 69 74 09  20 44 6f 73 46 69 6e 64  | 32-bit. DosFind|
00007d30  46 69 72 73 74 2f 4e 65  78 74 20 20 64 6f 6e 27  |First/Next  don'|
00007d40  74 0a 20 20 20 20 20 20  20 66 69 6e 64 20 20 73  |t.       find  s|
00007d50  75 63 68 20 6e 61 6d 65  73 2e 20 20 4f 74 68 65  |uch names.  Othe|
00007d60  72 20 70 72 6f 67 72 61  6d 73 20 73 75 63 68 20  |r programs such |
00007d70  61 73 20 47 4e 55 20 74  61 72 20 61 72 65 20 61  |as GNU tar are a|
00007d80  6c 73 6f 0a 20 20 20 20  20 20 20 61 66 66 65 63  |lso.       affec|
00007d90  74 65 64 20 62 79 20 74  68 69 73 20 62 75 67 2e  |ted by this bug.|
00007da0  0a 0a 20 20 20 20 20 20  20 55 6e 64 65 72 20 4f  |..       Under O|
00007db0  53 2f 32 2c 20 74 68 65  20 61 6d 6f 75 6e 74 20  |S/2, the amount |
00007dc0  6f 66 20 45 78 74 65 6e  64 65 64 20 41 74 74 72  |of Extended Attr|
00007dd0  69 62 75 74 65 73 20 64  69 73 70 6c 61 79 65 64  |ibutes displayed|
00007de0  20 62 79 0a 20 20 20 20  20 20 20 44 49 52 20 20  | by.       DIR  |
00007df0  69 73 09 28 66 6f 72 20  20 63 6f 6d 70 61 74 69  |is.(for  compati|
00007e00  62 69 6c 69 74 79 29 20  20 74 68 65 20 20 61 6d  |bility)  the  am|
00007e10  6f 75 6e 74 20 72 65 74  75 72 6e 65 64 20 62 79  |ount returned by|
00007e20  20 74 68 65 0a 20 20 20  20 20 20 20 31 36 2d 62  | the.       16-b|
00007e30  69 74 20 76 65 72 73 69  6f 6e 20 6f 66 20 44 6f  |it version of Do|
00007e40  73 51 75 65 72 79 50 61  74 68 49 6e 66 6f 28 29  |sQueryPathInfo()|
00007e50  2e 20 4f 74 68 65 72 77  69 73 65 09 4f 53 2f 32  |. Otherwise.OS/2|
00007e60  20 20 31 2e 33 0a 20 20  20 20 20 20 20 61 6e 64  |  1.3.       and|
00007e70  20 20 32 2e 30 09 20 77  6f 75 6c 64 09 72 65 70  |  2.0. would.rep|
00007e80  6f 72 74 09 64 69 66 66  65 72 65 6e 74 20 20 45  |ort.different  E|
00007e90  41 20 73 69 7a 65 73 20  77 68 65 6e 20 44 49 52  |A sizes when DIR|
00007ea0  69 6e 67 20 61 0a 20 20  20 20 20 20 20 66 69 6c  |ing a.       fil|
00007eb0  65 2e 20 20 48 6f 77 65  76 65 72 2c 09 74 68 65  |e.  However,.the|
00007ec0  20 20 73 74 72 75 63 74  75 72 65 09 6c 61 79 6f  |  structure.layo|
00007ed0  75 74 09 72 65 74 75 72  6e 65 64 20 20 62 79 20  |ut.returned  by |
00007ee0  20 74 68 65 0a 20 20 20  20 20 20 20 33 32 2d 62  | the.       32-b|
00007ef0  69 74 20 20 44 6f 73 51  75 65 72 79 50 61 74 68  |it  DosQueryPath|
00007f00  49 6e 66 6f 28 29 20 20  69 73 20 20 61 20 20 62  |Info()  is  a  b|
00007f10  69 74 20 20 64 69 66 66  65 72 65 6e 74 2c 20 69  |it  different, i|
00007f20  74 20 75 73 65 73 0a 20  20 20 20 20 20 20 65 78  |t uses.       ex|
00007f30  74 72 61 20 70 61 64 64  69 6e 67 20 62 79 74 65  |tra padding byte|
00007f40  73 20 61 6e 64 20 6c 69  6e 6b 20 70 6f 69 6e 74  |s and link point|
00007f50  65 72 73 20 28 69 74 27  73 20 61 20 6c 69 6e 6b  |ers (it's a link|
00007f60  65 64 20 6c 69 73 74 29  0a 20 20 20 20 20 20 20  |ed list).       |
00007f70  74 6f 20 68 61 76 65 20  61 6c 6c 20 66 69 65 6c  |to have all fiel|
00007f80  64 73 20 6f 6e 20 34 2d  62 79 74 65 20 62 6f 75  |ds on 4-byte bou|
00007f90  6e 64 61 72 69 65 73 20  66 6f 72 20 70 6f 72 74  |ndaries for port|
00007fa0  61 62 69 6c 69 74 79 20  74 6f 0a 20 20 20 20 20  |ability to.     |
00007fb0  20 20 66 75 74 75 72 65  20 52 49 53 43 20 4f 53  |  future RISC OS|
00007fc0  2f 32 20 76 65 72 73 69  6f 6e 73 2e 20 54 68 65  |/2 versions. The|
00007fd0  72 65 66 6f 72 65 20 74  68 65 20 76 61 6c 75 65  |refore the value|
00007fe0  20 72 65 70 6f 72 74 65  64 20 62 79 0a 20 20 20  | reported by.   |
00007ff0  20 20 20 20 7a 69 70 20  20 28 77 68 69 63 68 20  |    zip  (which |
00008000  20 75 73 65 73 20 74 68  69 73 20 33 32 2d 62 69  | uses this 32-bi|
00008010  74 2d 6d 6f 64 65 20 73  69 7a 65 29 20 64 69 66  |t-mode size) dif|
00008020  66 65 72 73 20 66 72 6f  6d 20 74 68 61 74 0a 20  |fers from that. |
00008030  20 20 20 20 20 20 72 65  70 6f 72 74 65 64 20 62  |      reported b|
00008040  79 20 44 49 52 2e 09 20  7a 69 70 20 73 74 6f 72  |y DIR.. zip stor|
00008050  65 73 20 74 68 65 20 33  32 2d 62 69 74 20 66 6f  |es the 32-bit fo|
00008060  72 6d 61 74 20 66 6f 72  20 20 70 6f 72 74 61 2d  |rmat for  porta-|
00008070  0a 20 20 20 20 20 20 20  62 69 6c 69 74 79 2c 09  |.       bility,.|
00008080  65 76 65 6e 20 20 74 68  65 20 31 36 2d 62 69 74  |even  the 16-bit|
00008090  20 4d 53 2d 43 2d 63 6f  6d 70 69 6c 65 64 20 76  | MS-C-compiled v|
000080a0  65 72 73 69 6f 6e 20 72  75 6e 6e 69 6e 67 20 6f  |ersion running o|
000080b0  6e 0a 20 20 20 20 20 20  20 4f 53 2f 32 20 31 2e  |n.       OS/2 1.|
000080c0  33 2c 20 73 6f 20 65 76  65 6e 20 74 68 69 73 20  |3, so even this |
000080d0  6f 6e 65 20 73 68 6f 77  73 20 74 68 65 20 33 32  |one shows the 32|
000080e0  2d 62 69 74 2d 6d 6f 64  65 20 73 69 7a 65 2e 0a  |-bit-mode size..|
000080f0  0a 41 55 54 48 4f 52 53  0a 20 20 20 20 20 20 20  |.AUTHORS.       |
00008100  43 6f 70 79 72 69 67 68  74 20 28 43 29 20 31 39  |Copyright (C) 19|
00008110  39 30 2d 31 39 39 37 09  4d 61 72 6b 20 20 41 64  |90-1997.Mark  Ad|
00008120  6c 65 72 2c 20 20 52 69  63 68 61 72 64 20 20 42  |ler,  Richard  B|
00008130  2e 20 20 57 61 6c 65 73  2c 0a 20 20 20 20 20 20  |.  Wales,.      |
00008140  20 4a 65 61 6e 2d 6c 6f  75 70 20 20 47 61 69 6c  | Jean-loup  Gail|
00008150  6c 79 2c 20 20 4f 6e 6e  6f 09 20 76 61 6e 20 20  |ly,  Onno. van  |
00008160  64 65 72 20 4c 69 6e 64  65 6e 2c 20 4b 61 69 20  |der Linden, Kai |
00008170  55 77 65 20 52 6f 6d 6d  65 6c 2c 0a 20 20 20 20  |Uwe Rommel,.    |
00008180  20 20 20 49 67 6f 72 20  4d 61 6e 64 72 69 63 68  |   Igor Mandrich|
00008190  65 6e 6b 6f 2c 20 4a 6f  68 6e 20 42 75 73 68 20  |enko, John Bush |
000081a0  61 6e 64 20 50 61 75 6c  20 4b 69 65 6e 69 74 7a  |and Paul Kienitz|
000081b0  2e 20 20 50 65 72 6d 69  73 73 69 6f 6e 0a 20 20  |.  Permission.  |
000081c0  20 20 20 20 20 69 73 20  20 67 72 61 6e 74 65 64  |     is  granted|
000081d0  20 74 6f 20 61 6e 79 20  69 6e 64 69 76 69 64 75  | to any individu|
000081e0  61 6c 20 6f 72 20 69 6e  73 74 69 74 75 74 69 6f  |al or institutio|
000081f0  6e 20 74 6f 20 75 73 65  2c 20 63 6f 70 79 2c 0a  |n to use, copy,.|
00008200  20 20 20 20 20 20 20 6f  72 20 72 65 64 69 73 74  |       or redist|
00008210  72 69 62 75 74 65 20 74  68 69 73 20 73 6f 66 74  |ribute this soft|
00008220  77 61 72 65 20 73 6f 20  6c 6f 6e 67 20 61 73 20  |ware so long as |
00008230  61 6c 6c 20 6f 66 20 74  68 65 20 6f 72 69 67 69  |all of the origi|
00008240  2d 0a 20 20 20 20 20 20  20 6e 61 6c 20 20 66 69  |-.       nal  fi|
00008250  6c 65 73 20 20 61 72 65  09 69 6e 63 6c 75 64 65  |les  are.include|
00008260  64 2c 20 74 68 61 74 20  69 74 20 69 73 20 6e 6f  |d, that it is no|
00008270  74 20 73 6f 6c 64 20 66  6f 72 20 70 72 6f 66 69  |t sold for profi|
00008280  74 2c 0a 20 20 20 20 20  20 20 61 6e 64 20 74 68  |t,.       and th|
00008290  61 74 20 74 68 69 73 20  63 6f 70 79 72 69 67 68  |at this copyrigh|
000082a0  74 20 6e 6f 74 69 63 65  20 69 73 20 72 65 74 61  |t notice is reta|
000082b0  69 6e 65 64 2e 0a 0a 20  20 20 20 20 20 20 4c 49  |ined...       LI|
000082c0  4b 45 20 41 4e 59 54 48  49 4e 47 20 45 4c 53 45  |KE ANYTHING ELSE|
000082d0  20 54 48 41 54 27 53 20  46 52 45 45 2c 09 5a 49  | THAT'S FREE,.ZI|
000082e0  50 20 20 41 4e 44 20 20  49 54 53 20 20 41 53 53  |P  AND  ITS  ASS|
000082f0  4f 43 49 41 54 45 44 0a  20 20 20 20 20 20 20 55  |OCIATED.       U|
00008300  54 49 4c 49 54 49 45 53  20 20 41 52 45 20 50 52  |TILITIES  ARE PR|
00008310  4f 56 49 44 45 44 20 41  53 20 49 53 20 41 4e 44  |OVIDED AS IS AND|
00008320  20 43 4f 4d 45 20 57 49  54 48 20 4e 4f 20 57 41  | COME WITH NO WA|
00008330  52 52 41 4e 54 59 20 4f  46 0a 20 20 20 20 20 20  |RRANTY OF.      |
00008340  20 41 4e 59 20 4b 49 4e  44 2c 20 45 49 54 48 45  | ANY KIND, EITHE|
00008350  52 20 45 58 50 52 45 53  53 45 44 20 4f 52 20 49  |R EXPRESSED OR I|
00008360  4d 50 4c 49 45 44 2e 20  49 4e 20 20 4e 4f 20 20  |MPLIED. IN  NO  |
00008370  45 56 45 4e 54 20 20 57  49 4c 4c 0a 20 20 20 20  |EVENT  WILL.    |
00008380  20 20 20 54 48 45 20 20  43 4f 50 59 52 49 47 48  |   THE  COPYRIGH|
00008390  54 20 48 4f 4c 44 45 52  53 20 42 45 20 4c 49 41  |T HOLDERS BE LIA|
000083a0  42 4c 45 20 46 4f 52 20  41 4e 59 20 44 41 4d 41  |BLE FOR ANY DAMA|
000083b0  47 45 53 20 52 45 53 55  4c 54 49 4e 47 0a 20 20  |GES RESULTING.  |
000083c0  20 20 20 20 20 46 52 4f  4d 20 54 48 45 20 55 53  |     FROM THE US|
000083d0  45 20 4f 46 20 54 48 49  53 20 53 4f 46 54 57 41  |E OF THIS SOFTWA|
000083e0  52 45 2e 0a 0a 20 20 20  20 20 20 20 50 6c 65 61  |RE...       Plea|
000083f0  73 65 20 20 73 65 6e 64  20 20 62 75 67 20 20 72  |se  send  bug  r|
00008400  65 70 6f 72 74 73 20 20  61 6e 64 09 63 6f 6d 6d  |eports  and.comm|
00008410  65 6e 74 73 20 20 62 79  20 20 65 6d 61 69 6c 20  |ents  by  email |
00008420  20 20 74 6f 3a 0a 20 20  20 20 20 20 20 7a 69 70  |  to:.       zip|
00008430  2d 62 75 67 73 40 6c 69  73 74 73 2e 77 6b 75 2e  |-bugs@lists.wku.|
00008440  65 64 75 2e 09 20 46 6f  72 20 20 62 75 67 20 72  |edu.. For  bug r|
00008450  65 70 6f 72 74 73 2c 20  70 6c 65 61 73 65 20 69  |eports, please i|
00008460  6e 63 6c 75 64 65 0a 20  20 20 20 20 20 20 74 68  |nclude.       th|
00008470  65 20 76 65 72 73 69 6f  6e 20 6f 66 20 7a 69 70  |e version of zip|
00008480  20 28 73 65 65 20 7a 69  70 2d 68 20 29 2c 20 74  | (see zip-h ), t|
00008490  68 65 20 6d 61 6b 65 20  6f 70 74 69 6f 6e 73 20  |he make options |
000084a0  75 73 65 64 20 20 74 6f  0a 20 20 20 20 20 20 20  |used  to.       |
000084b0  63 6f 6d 70 69 6c 65 09  69 74 20 20 73 65 65 20  |compile.it  see |
000084c0  7a 69 70 2d 76 20 29 2c  20 74 68 65 20 6d 61 63  |zip-v ), the mac|
000084d0  68 69 6e 65 20 61 6e 64  20 6f 70 65 72 61 74 69  |hine and operati|
000084e0  6e 67 20 73 79 73 74 65  6d 0a 20 20 20 20 20 20  |ng system.      |
000084f0  20 69 6e 20 75 73 65 2c  20 61 6e 64 20 61 73 20  | in use, and as |
00008500  6d 75 63 68 20 61 64 64  69 74 69 6f 6e 61 6c 20  |much additional |
00008510  69 6e 66 6f 72 6d 61 74  69 6f 6e 20 61 73 20 70  |information as p|
00008520  6f 73 73 69 62 6c 65 2e  0a 0a 41 43 4b 4e 4f 57  |ossible...ACKNOW|
00008530  4c 45 44 47 45 4d 45 4e  54 53 0a 20 20 20 20 20  |LEDGEMENTS.     |
00008540  20 20 54 68 61 6e 6b 73  20 74 6f 20 52 2e 20 50  |  Thanks to R. P|
00008550  2e 20 42 79 72 6e 65 20  66 6f 72 20 68 69 73 20  |. Byrne for his |
00008560  20 53 68 72 69 6e 6b 2e  50 61 73 20 20 70 72 6f  | Shrink.Pas  pro|
00008570  67 72 61 6d 2c 20 20 77  68 69 63 68 0a 20 20 20  |gram,  which.   |
00008580  20 20 20 20 69 6e 73 70  69 72 65 64 20 74 68 69  |    inspired thi|
00008590  73 20 70 72 6f 6a 65 63  74 2c 20 61 6e 64 20 66  |s project, and f|
000085a0  72 6f 6d 20 77 68 69 63  68 20 74 68 65 20 73 68  |rom which the sh|
000085b0  72 69 6e 6b 20 61 6c 67  6f 72 69 74 68 6d 0a 20  |rink algorithm. |
000085c0  20 20 20 20 20 20 77 61  73 20 73 74 6f 6c 65 6e  |      was stolen|
000085d0  3b 20 74 6f 20 50 68 69  6c 20 4b 61 74 7a 20 66  |; to Phil Katz f|
000085e0  6f 72 20 70 6c 61 63 69  6e 67 20 69 6e 20 74 68  |or placing in th|
000085f0  65 20 70 75 62 6c 69 63  20 20 64 6f 6d 61 69 6e  |e public  domain|
00008600  0a 20 20 20 20 20 20 20  74 68 65 20 7a 69 70 20  |.       the zip |
00008610  66 69 6c 65 20 66 6f 72  6d 61 74 2c 20 63 6f 6d  |file format, com|
00008620  70 72 65 73 73 69 6f 6e  20 66 6f 72 6d 61 74 2c  |pression format,|
00008630  20 61 6e 64 20 2e 5a 49  50 20 66 69 6c 65 6e 61  | and .ZIP filena|
00008640  6d 65 0a 20 20 20 20 20  20 20 65 78 74 65 6e 73  |me.       extens|
00008650  69 6f 6e 2c 20 61 6e 64  20 66 6f 72 20 61 63 63  |ion, and for acc|
00008660  65 70 74 69 6e 67 20 6d  69 6e 6f 72 20 20 63 68  |epting minor  ch|
00008670  61 6e 67 65 73 20 20 74  6f 09 74 68 65 20 20 66  |anges  to.the  f|
00008680  69 6c 65 0a 20 20 20 20  20 20 20 66 6f 72 6d 61  |ile.       forma|
00008690  74 3b 09 74 6f 20 20 53  74 65 76 65 20 20 42 75  |t;.to  Steve  Bu|
000086a0  72 67 20 66 6f 72 20 63  6c 61 72 69 66 69 63 61  |rg for clarifica|
000086b0  74 69 6f 6e 73 20 6f 6e  20 74 68 65 20 64 65 66  |tions on the def|
000086c0  6c 61 74 65 0a 20 20 20  20 20 20 20 66 6f 72 6d  |late.       form|
000086d0  61 74 3b 20 74 6f 20 48  61 72 75 68 69 6b 6f 20  |at; to Haruhiko |
000086e0  4f 6b 75 6d 75 72 61 20  61 6e 64 20 4c 65 6f 6e  |Okumura and Leon|
000086f0  69 64 20 42 72 6f 75 6b  68 69 73 09 66 6f 72 20  |id Broukhis.for |
00008700  20 70 72 6f 2d 0a 20 20  20 20 20 20 20 76 69 64  | pro-.       vid|
00008710  69 6e 67 20 73 6f 6d 65  20 75 73 65 66 75 6c 20  |ing some useful |
00008720  69 64 65 61 73 20 66 6f  72 20 74 68 65 20 63 6f  |ideas for the co|
00008730  6d 70 72 65 73 73 69 6f  6e 20 61 6c 67 6f 72 69  |mpression algori|
00008740  74 68 6d 3b 20 74 6f 0a  20 20 20 20 20 20 20 4b  |thm; to.       K|
00008750  65 69 74 68 20 50 65 74  65 72 73 65 6e 2c 20 52  |eith Petersen, R|
00008760  69 63 68 20 57 61 6c 65  73 2c 20 48 75 6e 74 65  |ich Wales, Hunte|
00008770  72 20 47 6f 61 74 6c 65  79 20 61 6e 64 20 4d 61  |r Goatley and Ma|
00008780  72 6b 20 20 41 64 6c 65  72 0a 20 20 20 20 20 20  |rk  Adler.      |
00008790  20 66 6f 72 20 70 72 6f  76 69 64 69 6e 67 20 61  | for providing a|
000087a0  20 6d 61 69 6c 69 6e 67  20 6c 69 73 74 20 61 6e  | mailing list an|
000087b0  64 20 66 74 70 20 73 69  74 65 20 66 6f 72 20 74  |d ftp site for t|
000087c0  68 65 20 49 6e 66 6f 2d  5a 49 50 0a 20 20 20 20  |he Info-ZIP.    |
000087d0  20 20 20 67 72 6f 75 70  20 74 6f 20 75 73 65 3b  |   group to use;|
000087e0  20 61 6e 64 20 6d 6f 73  74 20 69 6d 70 6f 72 74  | and most import|
000087f0  61 6e 74 6c 79 2c 20 74  6f 20 74 68 65 20 49 6e  |antly, to the In|
00008800  66 6f 2d 5a 49 50 20 20  67 72 6f 75 70 0a 20 20  |fo-ZIP  group.  |
00008810  20 20 20 20 20 69 74 73  65 6c 66 20 20 28 6c 69  |     itself  (li|
00008820  73 74 65 64 09 69 6e 20  20 74 68 65 09 20 66 69  |sted.in  the. fi|
00008830  6c 65 20 20 69 6e 66 6f  7a 69 70 2e 77 68 6f 29  |le  infozip.who)|
00008840  20 77 69 74 68 6f 75 74  20 77 68 6f 73 65 0a 20  | without whose. |
00008850  20 20 20 20 20 20 74 69  72 65 6c 65 73 73 20 74  |      tireless t|
00008860  65 73 74 69 6e 67 20 61  6e 64 20 62 75 67 2d 66  |esting and bug-f|
00008870  69 78 69 6e 67 09 65 66  66 6f 72 74 73 09 20 61  |ixing.efforts. a|
00008880  20 20 70 6f 72 74 61 62  6c 65 20 20 7a 69 70 0a  |  portable  zip.|
00008890  0a 49 6e 66 6f 2d 5a 49  50 09 20 20 20 20 20 20  |.Info-ZIP.      |
000088a0  20 32 32 20 4a 75 6e 65  20 31 39 39 37 20 28 76  | 22 June 1997 (v|
000088b0  32 2e 32 29 09 09 20 20  20 20 20 20 20 31 35 0a  |2.2)..       15.|
000088c0  0a 5a 49 50 28 31 4c 29  09 09 09 09 09 09 09 20  |.ZIP(1L)....... |
000088d0  20 5a 49 50 28 31 4c 29  0a 0a 20 20 20 20 20 20  | ZIP(1L)..      |
000088e0  20 77 6f 75 6c 64 20 20  6e 6f 74 20 20 68 61 76  | would  not  hav|
000088f0  65 09 20 62 65 65 6e 20  20 70 6f 73 73 69 62 6c  |e. been  possibl|
00008900  65 2e 20 20 46 69 6e 61  6c 6c 79 20 77 65 20 73  |e.  Finally we s|
00008910  68 6f 75 6c 64 20 74 68  61 6e 6b 0a 20 20 20 20  |hould thank.    |
00008920  20 20 20 28 62 6c 61 6d  65 29 20 74 68 65 20 66  |   (blame) the f|
00008930  69 72 73 74 20 49 6e 66  6f 2d 5a 49 50 20 20 6d  |irst Info-ZIP  m|
00008940  6f 64 65 72 61 74 6f 72  2c 20 20 44 61 76 69 64  |oderator,  David|
00008950  20 20 4b 69 72 73 63 68  62 61 75 6d 2c 0a 20 20  |  Kirschbaum,.  |
00008960  20 20 20 20 20 66 6f 72  20 20 67 65 74 74 69 6e  |     for  gettin|
00008970  67 20 20 75 73 09 20 69  6e 74 6f 20 20 74 68 69  |g  us. into  thi|
00008980  73 20 6d 65 73 73 20 69  6e 20 74 68 65 20 66 69  |s mess in the fi|
00008990  72 73 74 20 70 6c 61 63  65 2e 20 20 54 68 65 0a  |rst place.  The.|
000089a0  20 20 20 20 20 20 20 6d  61 6e 75 61 6c 20 70 61  |       manual pa|
000089b0  67 65 20 77 61 73 20 72  65 77 72 69 74 74 65 6e  |ge was rewritten|
000089c0  20 66 6f 72 20 55 4e 49  58 20 62 79 20 52 2e 20  | for UNIX by R. |
000089d0  50 2e 20 43 2e 20 52 6f  64 67 65 72 73 2e 0a 0a  |P. C. Rodgers...|
000089e0  49 6e 66 6f 2d 5a 49 50  09 20 20 20 20 20 20 20  |Info-ZIP.       |
000089f0  32 32 20 4a 75 6e 65 20  31 39 39 37 20 28 76 32  |22 June 1997 (v2|
00008a00  2e 32 29 09 09 20 20 20  20 20 20 20 31 36 0a 0a  |.2)..       16..|
00008a10