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

  1. Xref: sparky comp.unix.wizards:4659 comp.unix.shell:4678 comp.unix.misc:4145
  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.92Nov13093417@grymoire.crd.ge.com>
  7. Date: 13 Nov 92 14:34:17 GMT
  8. References: <aldavi01.721333614@starbase.spd.louisville.edu>
  9.     <1992Nov11.194557.16258@yarc.uucp>
  10.     <EEIDE.92Nov12120339@asylum.cs.utah.edu>
  11.     <1992Nov12.193707.27532@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: 48
  16. In-Reply-To: michael@chpc.utexas.edu's message of Thu, 12 Nov 92 19:37:07 GMT
  17. Nntp-Posting-Host: grymoire.crd.ge.com
  18.  
  19. In article <1992Nov12.193707.27532@chpc.utexas.edu> michael@chpc.utexas.edu (Michael Lemke) writes:
  20. >   Well, fixing typos is neat but it is not the essential problem.  My
  21. >   main complaint about Unix on the user interface level is that there is
  22. >   no command line interpreter.  What I mean is that after the shell munged
  23. >   your command line it is *completely* up to the program to interpret the
  24. >   command line and there is no system function available to parse even
  25. >   these `standard' options. 
  26.  
  27. Some look at this as an advantage. You are probably complaining about
  28. the inability to perform
  29.     rename *.old *.new
  30.  
  31. The point of the shell is to prevent every program from having to
  32. parse 
  33.     ~bill/$DIR/`prog`/*[0-9]?.{xxx,yyy} 
  34.  
  35. It becomes TRIVIAL to write a new shell utility. In fact many are just
  36. more shell utilities.
  37.  
  38. If you don't like ls, write your own version. It only takes a few seconds.
  39. If you don't like the fact the shell expands all of the metacharacters
  40. automatically, just turn it off. In csh, do a 
  41.  
  42.     set noglob
  43.  
  44. then you can write a program called "rename", and let it parse the
  45. arguments itself. People found out that the purpose of the shell is to
  46. expand meta-characters, just so that the shell commands don't have to
  47. bother. The programs also don't have to worry about I/O redirection. I
  48. remember writing programs, and having to change the source of the
  49. program when I wanted a printout vs.  output to the terminal. What a
  50. waste of time!
  51.  
  52.  
  53. It sounds like most of your problem is due to the large number of UNIX
  54. utilities. How many does DOS have? If you don't like all of the
  55. old/strange utilities, delete them or don't use them. It's not many
  56. operating systems that give you (Hmm. time to write a new shell
  57. command.... tic, tic, Done) ...
  58.  
  59.     find /usr/ucb /usr/bin -type f -print | wc -l
  60.  
  61. 319 different commands to the shell.
  62. That's a small number. I actually have 2033 shell commands now.
  63.  
  64. Hey, if I only have 30 commands, it would be trivial to make them similar.
  65. --
  66. Bruce Barnett <barnett@crd.ge.com> uunet!crdgw1!barnett
  67.