home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / wizards / 4649 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  2.5 KB

  1. Xref: sparky comp.unix.wizards:4649 comp.unix.shell:4669 comp.unix.misc:4136
  2. Path: sparky!uunet!know!mips2!news.bbn.com!usc!zaphod.mps.ohio-state.edu!uwm.edu!psuvax1!atlantis.psu.edu!barr
  3. From: barr@pop.psu.edu (David Barr)
  4. Newsgroups: comp.unix.wizards,comp.unix.shell,comp.unix.misc
  5. Subject: Re: The Problem with UNIX
  6. Message-ID: <-ml1H31!ua@atlantis.psu.edu>
  7. Date: 13 Nov 92 03:16:11 GMT
  8. References: <1992Nov11.194557.16258@yarc.uucp> <EEIDE.92Nov12120339@asylum.cs.utah.edu> <1992Nov12.193707.27532@chpc.utexas.edu>
  9. Sender: news@atlantis.psu.edu (Usenet)
  10. Organization: Penn State Population Research Institute
  11. Lines: 43
  12.  
  13. In article <1992Nov12.193707.27532@chpc.utexas.edu> michael@chpc.utexas.edu (Michael Lemke) writes:
  14. >Well, fixing typos is neat but it is not the essential problem.  My
  15. >main complaint about Unix on the user interface level is that there is
  16. >no command line interpreter.  What I mean is that after the shell munged
  17. >your command line it is *completely* up to the program to interpret the
  18. >command line and there is no system function available to parse even
  19. >these `standard' options.
  20.  
  21. You mean like getopt(3)?
  22.  
  23. >Some programs use one letter chinese (you
  24. >know, one character per word) and others (eg, find) use words (-print
  25. >-name).  And the real problem then starts when -l changes its meaning
  26. >from command to command, some commands need spaces between the option
  27. >and the argument, others don't, some take both, yech.  This would all be
  28. >solved if there were *one* system function that is used by all programs
  29. >instead of having every program duplicate more or less the same
  30. >functionality with different success.
  31.  
  32. You mean like getopt(3)?   There is one function, it's just the people
  33. don't always choose to use it.  I don't find this to be a Bad Thing.
  34. getopt(3) is too limiting in some cases, and it is overkill in others.
  35. Yes, this 'dd if=filename conv=ascii' is for the birds, and the author
  36. should have been shot for doing it this way, but that's not a reason
  37. to fault UNIX.
  38.  
  39. >And it would be great if you
  40. >could abbreviate commands (command completion of some shells it neat
  41. >but why is it neccessary in the first place?) and options (no need for
  42. >dynamic chinese anymore).
  43. >
  44. >>I agree with Scott: There is no good reason that command shells shouldn't make
  45. >>more of an effort to understand the user.  
  46. >
  47. >Computer:  Calculate the weather forecast for Sunday, Nov 15!
  48.  
  49. Why would i want to type all that out when i can just say:
  50.  
  51. % weather nov 15
  52.  
  53. --Dave
  54. -- 
  55. System Administrator, Population Research Institute    barr@pop.psu.edu
  56.