home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / unzip531.zip / funzip.doc < prev    next >
Text File  |  1997-05-31  |  4KB  |  101 lines

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