home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / wizards / 4716 < prev    next >
Encoding:
Internet Message Format  |  1992-11-16  |  3.2 KB

  1. Xref: sparky comp.unix.wizards:4716 comp.unix.shell:4729 comp.unix.misc:4188
  2. Path: sparky!uunet!crdgw1!rdsunx.crd.ge.com!rdsunx!barnett
  3. From: barnett@grymoire.crd.ge.com (Bruce Barnett)
  4. Newsgroups: comp.unix.wizards,comp.unix.shell,comp.unix.misc
  5. Subject: Re: The Problem with UNIX
  6. Message-ID: <BARNETT.92Nov16100853@grymoire.crd.ge.com>
  7. Date: 16 Nov 92 15:08:53 GMT
  8. References: <EEIDE.92Nov12120339@asylum.cs.utah.edu>
  9.     <1992Nov12.193707.27532@chpc.utexas.edu>
  10.     <BARNETT.92Nov13093417@grymoire.crd.ge.com>
  11.     <1992Nov13.224718.15935@chpc.utexas.edu>
  12. Sender: usenet@crd.ge.com (Required for NNTP)
  13. Reply-To: barnett@crdgw1.ge.com
  14. Organization: GE Corp. R & D, Schenectady, NY
  15. Lines: 72
  16. In-Reply-To: michael@chpc.utexas.edu's message of Fri, 13 Nov 92 22:47:18 GMT
  17. Nntp-Posting-Host: grymoire.crd.ge.com
  18.  
  19. In article <1992Nov13.224718.15935@chpc.utexas.edu> michael@chpc.utexas.edu (Michael Lemke) writes:
  20. >   No, I don't.  I am complaining that the options are a) parsed
  21. >   inconsistently (`bla -lx a' might be valid and `bla -l x a' not but
  22. >   `foo -l x a ' is ok and `foo -lx a' is not) and b) that -l means long
  23. >   for ls -l but library for f77 -l.  I want ls -long and f77 -library and
  24. >   be able to abbreviate both -long and -library because `long' and
  25. >   `library' is what I mean and not -l.
  26.  
  27. >   >It sounds like most of your problem is due to the large number of UNIX
  28. >   >utilities. How many does DOS have? 
  29.  
  30. >   No idea.  I don't know DOS.
  31.  
  32. Well, what are you comparing Unix to? As I stated, I currently have
  33. 2033 commands available. When you consider the large number of
  34. commands, along with the ease of creating new ones, it is no wonder
  35. they are inconsistent. As Boyd says, VMS also has inconsistencies
  36. (I personally don't know enought to comment). ANY system that has the
  37. large number of commands is bought to have inconsistancies, unless the
  38. creation of these programs are under tight control, and we can throw
  39. out backwards compatability. Even so, people will want to deviate from
  40. the strict guidelines because it makes the interface friendlier.
  41.  
  42. Consider your "-l" example. Unix is considerate of the person typing
  43. all day.  I don't want to type dozens of extra characters for commands
  44. I execute all of the time.
  45.  
  46. How can you allow variable length options and still allow terseness
  47. when typing?
  48.  
  49. I don't want to type
  50.     list -long -time  -reverse -all
  51. or 
  52.     list -lo -ti  -r -a
  53. or 
  54.     list -lo/ti/r/a
  55. or even 
  56.     list -l/t/r/a
  57. when I can type
  58.     ls -ltra
  59.  
  60.  
  61. Same thing with the -l option to cc/ld.
  62.  
  63.     -lm
  64. is equivalent to the more logical
  65.  
  66.      -library=/usr/lib/libm.a
  67. or even
  68.      -library=libm.a
  69. or     -l=libm.a
  70.  
  71. Unix is inconsistant and power user friendly. 
  72.  
  73. You must also consider the possibility of adding new options (which is
  74. very easy to do.) Consider a command that allowed
  75.     -long
  76.     -lon
  77.     -lo
  78. and
  79.     -l
  80.  
  81. as valid. Suppose you add a "-low" option? Old scripts who uses "-l"
  82. or "-lo" could break. This is a fatal flaw. You could add new options
  83. that never conflict with previous options, but then this also has
  84. problems because you are forces to select options whoes words that
  85. might not make sense.
  86.  
  87. IMHO adding consistency to Unix would place an extra burden for the person
  88. typing on the keyboard all day long.
  89. --
  90. Bruce Barnett <barnett@crd.ge.com> uunet!crdgw1!barnett
  91.