home *** CD-ROM | disk | FTP | other *** search
/ Internet File Formats / InternetFileFormatsCD.bin / compress / zip / windows / win95 / funzip.doc < prev    next >
Encoding:
Text File  |  1994-08-25  |  3.6 KB  |  93 lines

  1.  
  2.   inflating: funzip.doc              
  3. FUNZIP(1)                USER COMMANDS                  FUNZIP(1)
  4.  
  5. NAME
  6.      funzip - filter for extracting from a ZIP archive in a pipe
  7.  
  8. SYNOPSIS
  9.      [...]  |  funzip [-password]  |  [...]
  10.  
  11.      funzip [-password] input.zip  |  [...]
  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  is being piped into standard input, and it extracts
  22.      the first member from the archive to stdout.  If there is an
  23.      argument,  then  the  input  comes  from  the specified file
  24.      instead of from stdin.  A password for encrypted  zip  files
  25.      can  be  specified  on  the command line (preceding the file
  26.      name, if any) by prefixing the password with a  dash.   Note
  27.      that  this  constitutes  a  security  risk  on many systems;
  28.      currently running processes are  often  visible  via  simple
  29.      commands  (e.g.,  ps(1)  under  Unix), and command-line his-
  30.      tories can be read.  If the first entry of the zip  file  is
  31.      encrypted  and no password is specified on the command line,
  32.      then the user is prompted for a password and the password is
  33.      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: 28 Aug 94 (v3.83)                 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: 28 Aug 94 (v3.83)                 2
  92.  
  93.