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

  1. Date: Thu 2 Oct 86 01:59:26-PDT
  2. From: Mark Crispin <MRC%PANDA@SUMEX-AIM.Stanford.EDU>
  3. Postal-Address: 1802 Hackett Ave.; Mountain View, CA  94043-4431
  4. Phone: +1 (415) 968-1052
  5.  
  6. I would like to add a loud "Bravo!" to Mark Horton's message!  The present
  7. case sensitivity of the Unix filesystem is a real drag, and something that
  8. has regularly and reliably caused me problems when working in a heterogenous
  9. environment.  As far as I can tell, the only individuals who actually *like*
  10. case sensitivity in Unix are the high-schoolish hackers who think it's really
  11. cute to write programs with separate -1, -l, -I, and -L switches.
  12.  
  13. I think that the most reasonable proposal is to do a free case match on input,
  14. so that "more foobar" is the same as "More FooBar", etc.  On output, you first
  15. do a free case match to see if there is an extant file and if so preserve the
  16. case of that file.  In other words, if I overwrite FooBar but specify foobar
  17. or FOOBAR, the file is still called FooBar.  Otherwise, use whatever case the
  18. user specifies.  Renaming would always use the case the user specifies, so the
  19. user can rename foobar to FooBar, etc.
  20.  
  21. Now, if I can convince you guys to do this for usernames, I will take back at
  22. least 50% of the nasty things I've ever said about Unix.  Golly gee, it would
  23. be nice to be MRC or Crispin, not "mrc" or "crispin"...
  24.  
  25. Another way of doing it is how TOPS-20 does it.  TOPS-20's filesystem isn't
  26. *really* case independent.  All lowercase characters are coerced into upper
  27. case, so if I say foobar.txt it becomes FOOBAR.TXT in the actual filename.
  28. This is both from the user interface and from the filename lookup system call.
  29. It is, however, possible for any of the 128 ASCII characters to be in a filename,
  30. provided that the "oddball" characters are quoted using CTRL/V.  In other words,
  31. a FooBar.Txt file is possible on TOPS-20, but only by F<^V>o<^V>oB<^V>a<^V>r.T<^V>x<^V>t.
  32.  
  33. For once, I don't favor the TOPS-20 way of doing things.  TOPS-20's scheme is
  34. alright if you started with case independence to begin with, but I don't think
  35. it would fit in well into Unix, and certainly not without a major flag day.  I
  36. hope that my suggestion above could fit in with only minimal inconvenience.
  37.  
  38. I found on TOPS-20 that no serious user used case-sensitive filenames.  Everybody
  39. appreciated the case-insensitivity of the interface, even though it took the form
  40. of coercing to upper case.  My experience also suggests that case sensitivity is
  41. a pain in the a**; I tried writing a major utility in Interlisp using mixed case
  42. function and variable names and eventually gave up when most of my errors turned
  43. out to be case errors.  It's *so* much easier to keep the shift lock key down...
  44.  
  45. -- Mark --
  46. -------
  47.  
  48. Volume-Number: Volume 7, Number 12
  49.  
  50.