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