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

  1. Path: sparky!uunet!auspex-gw!guy
  2. From: guy@Auspex.COM (Guy Harris)
  3. Newsgroups: comp.bugs.sys5
  4. Subject: Re: Improving "file" (was Re: Making Solaris 2.1 smarter...)
  5. Message-ID: <16337@auspex-gw.auspex.com>
  6. Date: 11 Jan 93 21:58:12 GMT
  7. References: <16235@auspex-gw.auspex.com> <16320@auspex-gw.auspex.com> <1993Jan10.143907.12860@ulysses.att.com> <16329@auspex-gw.auspex.com>
  8. Sender: news@auspex-gw.auspex.com
  9. Distribution: na
  10. Organization: Auspex Systems, Santa Clara
  11. Lines: 12
  12. Nntp-Posting-Host: auspex.auspex.com
  13.  
  14. >What happens if you have a field whose value you don't test at all, or
  15. >test with a test other than one for equality or inequality, and whose
  16. >value you later print?
  17.  
  18. Actually, you can pile an additional hack on top of the "test both byte
  19. orders" hack for *some* of those cases - have "file", once it finds a
  20. match with one particular byte order, use the byte order for all
  21. subsequent extractions of numeric data from the file.
  22.  
  23. It *is* a hack atop a hack, though, and doesn't handle the ELF case,
  24. wherein you find out the byte order of the file by checking a one-byte
  25. field....
  26.