home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / question / 12932 < prev    next >
Encoding:
Text File  |  1992-11-04  |  1.9 KB  |  46 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!email!mich
  3. From: mich@vmars.tuwien.ac.at (Michael Schuster 8726004 (Dipl Joe))
  4. Subject: Re: IS UNIX DEAD
  5. Message-ID: <1992Nov5.083501.12507@email.tuwien.ac.at>
  6. Sender: news@email.tuwien.ac.at
  7. Nntp-Posting-Host: gipsy.vmars.tuwien.ac.at
  8. Organization: Technical University Vienna, Dept. for Realtime Systems, AUSTRIA
  9. References: <RICH.92Nov4093932@rich.kastle.com> <30067@nntp_server.ems.cdc.com> <15330@auspex-gw.auspex.com>
  10. Date: Thu, 5 Nov 1992 08:35:01 GMT
  11. Lines: 33
  12.  
  13. guy@Auspex.COM (Guy Harris) writes:
  14.  
  15. >>Does "del" then have to do a "tolower()" (or equivalent) to the filenames,
  16. >>or does it compare each character of the command target to both cases of
  17. >>each letter of the filename it's looking at?
  18.  
  19. >As far as I know, the answer to the previous question is:
  20.  
  21. >    No.
  22.  
  23. >I.e., I don't think it has to do either one.  The OS calls it makes do
  24. >the equivalent translations, so code that uses those calls doesn't have
  25. >to.
  26.  
  27. >Presumably the wildcard matching code is also case-insensitive (if it's
  28. >not, somebody screwed up).  (I assume there that the OS provides
  29. >wildcard-matching code, and that applications can, at least, call that
  30. >code to expand wildcard patterns from the command line, rather than
  31. >having to roll their own.  If the OS doesn't provide those calls,
  32. >somebody screwed up.)
  33.  
  34. You obviously misinterpreted the article you replied to; it's not about
  35. who does the translation (tolower), but that it has to be done AT ALL.
  36. That's the real crux. For every directory lookup (or any dir.
  37. operation, it seems), you have to go through a tolower-loop, etc. A
  38. bloody nuisance, I call it.
  39.  
  40. Michael
  41. -- 
  42. Michael Schuster         | Place the quote: (author, characters ... )
  43. TU Vienna, Austria        |    "Coincidence was his father and luck his
  44. mich@vmars.tuwien.ac.at        |       inheritance"
  45. +43/1/58801/8181 (sometimes)    |    replies will be rewarded a cookie.
  46.