home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / bugs / sys5 / 169 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  2.1 KB

  1. Path: sparky!uunet!crdgw1!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!dptg!ulysses!ulysses.att.com!gsf
  2. From: gsf@ulysses.att.com (Glenn S. Fowler)
  3. Newsgroups: comp.bugs.sys5
  4. Subject: Re: Improving "file" (was Re: Making Solaris 2.1 smarter...)
  5. Message-ID: <1993Jan10.143907.12860@ulysses.att.com>
  6. Date: 10 Jan 93 14:39:07 GMT
  7. References: <16235@auspex-gw.auspex.com> <C0Hoqv.GtJ@vuse.vanderbilt.edu> <16320@auspex-gw.auspex.com>
  8. Distribution: na
  9. Organization: AT&T Bell Labs
  10. Lines: 33
  11.  
  12. In article <16320@auspex-gw.auspex.com> guy@Auspex.COM (Guy Harris) writes:
  13. >>I'm just learning to use perl and wonder if anyone else thinks that perl
  14. >>would be a good implementation language for the extended file(1) that
  15. >>Guy describes.
  16. >
  17. >Actually, at this point, most of it is already implemented in another
  18. >language, namely C; Ian Darwin's "file", version 3.0, has much of what's
  19. >needed, and I sent him a pile of changes that add in some missing stuff:
  20. >
  21. >    I added "beshort" and company, although it still does C-style
  22. >    strings for "string";
  23.  
  24. instead of changing the magic file format to handle BE/LE, change the
  25. file command to test, for each short/long initial entry, both BE and
  26. LE orderings, and then stick with the ordering for that entry
  27.  
  28. our local file does this and successfully handles all of the magic
  29. formats on the cross-mounted files for our local architectures
  30. (sun,vax,mipsel,mipseb,i386,dynix,3b,hp,etc.)
  31.  
  32. by having one file (and one magic file) we get the same output for
  33. a given set of input files no matter what host file runs on and we
  34. avoid the magic file duplication that would be required with
  35. short-beshort-leshort and long-belong-lelong
  36.  
  37. of course there is a possibility of BE/LE clash or diff architectures
  38. with diff meaning for the same magic, but we haven't hit this yet
  39.  
  40. Glenn Fowler    (908)-582-2195    AT&T Bell Laboratories, Murray Hill, NJ
  41. uucp: {att,ucbvax}!ulysses!gsf              internet: gsf@ulysses.att.com
  42.  
  43. Glenn Fowler    (908)-582-2195    AT&T Bell Laboratories, Murray Hill, NJ
  44. uucp: {att,ucbvax}!ulysses!gsf              internet: gsf@ulysses.att.com
  45.