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