home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / file39a.zip / readme.os2 < prev   
Text File  |  1993-08-05  |  2KB  |  63 lines

  1. This is the readme file for the port to OS/2 1.x--2.x and DOS of 
  2. Ian Darwin's file(1) command.  The UNIX program attempts to determine 
  3. the type of file based on the contents. A database of signatures 
  4. (the magic(4) file) is used.
  5.  
  6. Darwin's version has several enhancements over the usual UNIX versions,
  7. including:
  8.  1. More flexible magicfile entries.
  9.  
  10.  2. An "ascii magic" routine for keywords which can appear anywhere in the
  11.     file.
  12.  
  13.  3. "-z" option will recursively unwind compress'd files to determine
  14.     the types.
  15.  
  16. This OS/2 port has an additional enhancement:
  17.  4. DosQ[uery]AppType is used to determine the type (DOS, OS/2, 32-bit,
  18.     etc.) of an executable or DLL.
  19.  
  20. QUICK START: Choose the appropriate executable (file-32.exe for OS/2 2.x,
  21. file.exe for OS/2 1.x--2.x, or file-dos.exe for DOS). Copy the
  22. file "magic" to one of the following locations:
  23.  * /etc/
  24.  * directory of the exectable
  25.  * a directory in PATH or DPATH
  26. or use the command-line option "-m" to specify the magicfile location.
  27.  
  28. Now try:
  29.  file *      or      file *.*
  30.  
  31.  
  32. Notes:
  33. 0. file v3 patchlevel9 is by Ian Darwin (darwin@cs.toronto.edu); see
  34. the README file. This is the second release of the OS/2 version. Many
  35. thanks to Greg Roelofs (newt@uchicago.edu) for the help.
  36.  
  37. 1. The OS/2 2.x version requires the DLLs from the EMX distribution.
  38. If you do not have these, then use file.exe or get
  39.    ftp-os2.cdrom.com:pub/os2/2_x/unix/gnu/emx08g/emxrt.zip
  40.  
  41. 2. The magicfile needs more work. There are some other suggestions in
  42. notes*.os2. Thanks to Jouni Miettunen (jon@stekt.oulu.fi) for the
  43. contributions. Darwin collects magicfile entries.
  44.  
  45. 3. See the files notes*.os2 for additional information on the OS/2 and
  46. DOS ports. This is the first port to OS/2 and DOS; feedback and
  47. magic-file entries are welcomed.
  48.  
  49. --
  50. Darrel Hankerson  hankedr@mail.auburn.edu  or  hank@ducvax.auburn.edu
  51. 11-Apr-93, updated 30-Jul-93
  52.  
  53. OS/2 version 3.9 to 3.9a updates:
  54.  
  55. Fixes: correct display of date info (e.g., on gzip'd files); fix
  56. message on OS/2 exe's with no application type; correct code
  57. which could cause trouble with the "-c" option on bad input. 
  58. Additions and corrections to the magic-file.
  59.  
  60. Changes: In OS/2 versions, continue on to the magic-file checks
  61. in the case that DosQueryApptype indicates a DOS executable. This 
  62. permits use of the checks for special (e.g., compressed) executables.
  63.