home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v7 / text0036.txt < prev    next >
Encoding:
Internet Message Format  |  1987-06-30  |  2.4 KB

  1. From: seismo!nbs-amrf!libes@sally.utexas.edu (Don Libes)
  2. Date: Wed, 8 Oct 86 19:54:05 EDT
  3.  
  4. I write programs for both case-sensitive (CS) and case-insensitive
  5. (CI) systems.  As an applications programmer, I prefer case-sensitivity.
  6.  
  7. Why?  Because my code on the CI system is full of calls to upper(),
  8. lower(), isupper() and islower(), while the CS programs don't have
  9. any of that.  On the CS system, case is important - it would be a
  10. mistake to map it either way.
  11.  
  12. On the other hand, take the CI system.  If I have a user-supplied
  13. filename, depending upon the system I may have to case-map it before
  14. calling open.  But suppose I'm reading a directory and I want to
  15. match the filename against the entries.  Now, I definitely have to
  16. case-map it before doing a string comparison.  Unless you want to
  17. supply me with a filecmp() which is just a case-map wrapped around
  18. a strcmp().  Seems silly.
  19.  
  20. Now you may think, I'm getting annoyed over one little case-map,
  21. but as MRC points out, OSs tend to go about this in a big way.  For
  22. example, VMS has case-insensitive filenames, logical names, device
  23. names, usernames, symbols, etc.  Everytime I deal with an object,
  24. the first thing I have to do is start worrying about case.
  25. Depending upon the utility, library, language, etc I'm working with
  26. I then have to start thinking if their interfaces are
  27. case-sensitive or not.  I find all of this quite annoying.
  28.  
  29. That is why, as an application programmer, I much prefer case-sensitivity.
  30.  
  31. Please don't tell me I am insensitive to users.  I am not about to
  32. argue here whether or not users have the intelligence to hold down
  33. the shift key at the appropriate times.
  34.  
  35. As far as m/Mail, m/Makefile goes, the problem is not that users
  36. find them easily confused.  That should've been obvious to the
  37. genius who reused the name.  If you want, I can easily choose
  38. filenames that you will find confusing, even in the same case.
  39.  
  40. As far as emulator's go, I daily use Eunice, which faces this very
  41. problem of handling case-sensitive file names in a case-insensitive
  42. environment.  As far as case-mapping, their solution is very
  43. elegant.  (No other claims about the elegance of Eunice are
  44. proffered here.)  I.e.  UNIX programs see a case-sensitive
  45. filesystem.  Further, they are also allowed arbitrary characters in
  46. a filename, outside the legal VMS character set.)
  47.  
  48. Don Libes   {seismo,umcp-cs}!nbs-amrf!libes
  49.  
  50. Volume-Number: Volume 7, Number 37
  51.  
  52.