home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / unzip511.zip / vms / README < prev    next >
Text File  |  1994-06-23  |  4KB  |  82 lines

  1. vms/README for UnZip 5.11 and later, 23 Jun 94
  2. ----------------------------------------------
  3.  
  4. Notes about using UnZip and zipfiles under VMS (see INSTALL for instructions
  5. on compiling):
  6.  
  7.  - Install UnZip as foreign symbol by adding this to login.com:
  8.       $ unzip == "$disk:[dir]unzip.exe"
  9.       $ zipinfo == "$disk:[dir]unzip.exe -Z"
  10.    where "disk" and "dir" are location of UnZip executable; the "$" before
  11.    the disk name is important.  Some people, including the author, prefer
  12.    a short alias such as "ii" instead of "zipinfo"; edit to taste.
  13.  
  14.  - After proper installation, UnZip is invoked just as in Unix or MS-DOS:
  15.    "unzip -opts archive files".  The hyphen ('-') is the switch character,
  16.    not the slash ('/') as in native VMS commands.  A portable tool can be
  17.    designed to operate like the native programs on every system, or it can
  18.    be designed to operate consistently across all systems; Info-ZIP has 
  19.    chosen the latter course.  At some future date we may add support which
  20.    allows the user (or installer) to choose native look-and-feel over Info-
  21.    ZIP look-and-feel, but this is not a priority...
  22.  
  23.  - VMS (or the C compiler) translates all command-line text to lowercase
  24.    unless it is quoted, making some options and/or filenames not work as
  25.    intended.  For example:
  26.     unzip -V zipfile vms/README
  27.    is tranlated to
  28.     unzip -v zipfile vms/readme
  29.    which may not match the contents of the zipfile and definitely won't
  30.    extract the file with its version number as intended.  This can be
  31.    avoided by enclosing the uppercase stuff in quotes:
  32.     unzip "-V" zipfile "vms/README"
  33.    Note that quoting the whole line probably won't work, since it would
  34.    be interpreted as a single argument by the C library.
  35.  
  36.  - Wildcards which refer to files internal to the archive behave like Unix
  37.    wildcards, not VMS ones.  This is both a matter of consistency (see
  38.    above) and power--full Unix regular expressions are supported, so that
  39.    one can specify "all .c and .h files which start with a, b, c or d and
  40.    do not have a 2 before the dot" as "[a-d]*[^2].[ch]".  Of course, "*.[ch]"
  41.    is a much more common wildcard specification, but the power is there if
  42.    you need it.  Note that "*" matches zipfile directory separators ('/'),
  43.    too.  If UnZip was compiled with VMSWILD defined (do "unzip -v" to check),
  44.    the single-character wildcard is "%" rather than "?".
  45.  
  46.  - Created files get whatever permissions were stored in the archive (mapped
  47.    to VMS and/or masked with your default permissions, depending on the 
  48.    originating operating system), but created directories additionally in-
  49.    herit the (possibly more restrictive) permissions of the parent directory.
  50.    And obviously things won't work if you don't have permission to write to
  51.    the extraction directory.
  52.  
  53.  - When transferring files, particularly via Kermit, pay attention to the
  54.    settings!  In particularly, zipfiles must be transferred in some binary
  55.    mode, which is NOT Kermit's default mode, and this mode must usually be
  56.    set on BOTH sides of the transfer (e.g., both VAX and PC).  See the notes
  57.    below for details.
  58.  
  59.  
  60.  
  61.  
  62. From Info-ZIP Digest (Wed, 6 Nov 1991), Volume 91, Issue 290:
  63.  
  64.    Date: Tue, 5 Nov 91 15:31 CDT
  65.    From: Hugh Schmidt <HUGH@macc.wisc.edu>
  66.  
  67.             ****************************************************
  68.             *** VMS ZIP and PKZIP compatibility using KERMIT ***
  69.             ****************************************************
  70.  
  71.    Many use Procomm's kermit to transfer zipped files between PC and VMS
  72.    VAX.  The following VMS kermit settings make VMS Zip/UnZip compatible
  73.    with PC Zip/UnZip or PKZIP/PKUNZIP:
  74.                                          VMS kermit          Procomm kermit
  75.                                     -------------------   --------------------
  76.    Uploading PC zipfile to VMS:     set file type fixed   set file type binary
  77.    Downloading VMS zipfile to PC:   set file type block   set file type binary
  78.  
  79.    "Block I/O lets you bypass the VMS RMS record-processing capabilities
  80.    entirely", (Guide to VMS file applications, Section 8.5).  The kermit
  81.    guys must have known this!
  82.