home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / unzip511.zip / funzip.doc < prev    next >
Text File  |  1994-08-02  |  4KB  |  92 lines

  1.  
  2. FUNZIP(1)                USER COMMANDS                  FUNZIP(1)
  3.  
  4. NAME
  5.      funzip - filter for extracting from a ZIP archive in a pipe
  6.  
  7. SYNOPSIS
  8.      [...]  |  funzip [-password]  |  [...]
  9.  
  10.      funzip [-password] input.zip  |  [...]
  11.  
  12. ARGUMENTS
  13.      [-password]
  14.           Optional  password  to  be  used  if  ZIP  archive   is
  15.           encrypted.   Decryption  may  not  be supported at some
  16.           sites.  See DESCRIPTION for more details.
  17.  
  18. DESCRIPTION
  19.      funzip acts as a filter; that is,  it  assumes  that  a  ZIP
  20.      archive  is being piped into standard input, and it extracts
  21.      the first member from the archive to stdout.  If there is an
  22.      argument,  then  the  input  comes  from  the specified file
  23.      instead of from stdin.  A password for encrypted  zip  files
  24.      can  be  specified  on  the command line (preceding the file
  25.      name, if any) by prefixing the password with a  dash.   Note
  26.      that  this  constitutes  a  security  risk  on many systems;
  27.      currently running processes are  often  visible  via  simple
  28.      commands  (e.g.,  ps(1)  under  Unix), and command-line his-
  29.      tories can be read.  If the first entry of the zip  file  is
  30.      encrypted  and no password is specified on the command line,
  31.      then the user is prompted for a password and the password is
  32.      not echoed on the console.
  33.  
  34.      Given the limitation on single-member extraction, funzip  is
  35.      most useful in conjunction with a secondary archiver program
  36.      such as tar(1).  The following section includes  an  example
  37.      illustrating this usage in the case of disk backups to tape.
  38.  
  39. EXAMPLES
  40.      To use funzip to  extract  the  first  member  file  of  the
  41.      archive test.zip and to pipe it into more(1):
  42.  
  43.          funzip test.zip | more
  44.  
  45.      To use funzip to test the first member file of test.zip (any
  46.      errors will be reported on standard error):
  47.  
  48.          funzip test.zip > /dev/null
  49.  
  50.      To use zip and funzip in place of  compress(1)  and  zcat(1)
  51.      (or gzip(1L) and gzcat(1L)) for tape backups:
  52.  
  53.          tar cf - . | zip -7 | dd of=/dev/nrst0 obs=8k
  54.          dd if=/dev/nrst0 ibs=8k | funzip | tar xf -
  55.  
  56. Info-ZIP          Last change: 2 Aug 94 (v3.83)                 1
  57.  
  58. FUNZIP(1)                USER COMMANDS                  FUNZIP(1)
  59.  
  60.      (where, for example, nrst0 is a SCSI tape drive).
  61.  
  62. BUGS
  63.      When piping an encrypted file into more and allowing  funzip
  64.      to  prompt for password, the terminal may sometimes be reset
  65.      to a non-echo mode.  This is apparently due to a race condi-
  66.      tion  between  the two programs; funzip changes the terminal
  67.      mode to non-echo before more reads its state, and more  then
  68.      ``restores''  the  terminal to this mode before exiting.  To
  69.      recover, run  funzip  on  the  same  file  but  redirect  to
  70.      /dev/null  rather  than  piping  into  more; after prompting
  71.      again for the password, funzip will reset the terminal prop-
  72.      erly.
  73.  
  74.      There is presently no way to  extract  any  member  but  the
  75.      first  from a ZIP archive.  This would be useful in the case
  76.      where a ZIP archive is included within another archive.   In
  77.      the  case where the first member is a directory, funzip sim-
  78.      ply creates the directory and exits.
  79.  
  80.      The functionality of  funzip  should  be  incorporated  into
  81.      unzip itself (future release).
  82.  
  83. SEE ALSO
  84.      gzip(1L), unzip(1L),  unzipsfx(1L),  zip(1L),  zipcloak(1L),
  85.      zipinfo(1L), zipnote(1L), zipsplit(1L)
  86.  
  87. AUTHOR
  88.      Mark Adler (Info-ZIP)
  89.  
  90. Info-ZIP          Last change: 2 Aug 94 (v3.83)                 2
  91.  
  92.