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

  1. Xref: sparky comp.unix.wizards:4574 comp.unix.shell:4604 comp.unix.misc:4072
  2. Newsgroups: comp.unix.wizards,comp.unix.shell,comp.unix.misc
  3. Path: sparky!uunet!ukma!netnews.louisville.edu!starbase.spd.louisville.edu!aldavi01
  4. From: aldavi01@terra.spd.louisville.edu (Arlie Davis)
  5. Subject: Re: The Problem with UNIX
  6. Sender: news@netnews.louisville.edu (Netnews)
  7. Message-ID: <aldavi01.721333614@starbase.spd.louisville.edu>
  8. Date: Mon, 9 Nov 1992 18:26:54 GMT
  9. Reply-To: Arlie Davis <aldavi01@starbase.spd.louisville.edu>
  10. References: <1992Nov9.172715.16367@cs.wisc.edu>
  11. Nntp-Posting-Host: terra.spd.louisville.edu
  12. Organization: University of Louisville
  13. Lines: 52
  14.  
  15. In comp.unix.misc you write:
  16.  
  17. > I am doing research on UNIX command line interface problems.
  18. > I am sure everyone has his/her favorite UNIX troubles, would
  19. > you post or email me what's your favorites?  What should have
  20. > been done by UNIX to resolve that problem in general?
  21.  
  22. Are you sure you are researching the command line interface?  None of your
  23. examples below seem to suggest so.
  24.  
  25. > Does anybody know of excellent papers in this area?  I know 
  26. > about Norman's "The Trouble with UNIX".
  27.  
  28. > To start the discussion, consider the following problems:
  29.  
  30. >     cat a b > b
  31.  
  32. >     This is a general problem of trying to modify the input
  33. >     file.
  34.  
  35. This has nothing at all to do with the command line interface.  This is simply
  36. an *error* in user semantics.  What should cat do?  Stick in a feedback loop?
  37. No, this is definitely an error on the user's side.
  38.  
  39. >     rm -filename_with_a_hyphen
  40.  
  41. >     This is a general problem of name clash (clashing filename
  42. >     with command options.)
  43.  
  44. True, but it is a trivial one.  *All* UNIX filenames can specified explicitly
  45. with a full pathname (such as "rm /tmp/foo/bar/-filename_with_a_hyphen" or
  46. "rm $PWD/-filename_with_a_hyphen"), or as a relative directory, starting with
  47. the parent directory ".." or the current directory "." (such as
  48. "rm ./-filename_with_a_hyphen").
  49.  
  50. Also, again, this has nothing at all to do with the command line interface,
  51. the "shell".  How programs interpret their argument vector is entirely up
  52. to them.  The shell only passes on what the user types.
  53.  
  54. >     mail somebody < a.out
  55.  
  56. >     Sending binary file should be uuencoded first.  This is a
  57. >     general type conflict problem.
  58.  
  59. Again, this is an error on the *user's* side.  This has nothing to do with the
  60. shell!  Yes, you could create a mail script wrapper that checked the magic cookie
  61. of the file being sent (see file(1)), and uuencoded if necessary.  But this is
  62. completely different from the shell.
  63.  
  64. > Bryan So
  65. -- 
  66. lrwx------   1 aldavi01 emacsstu       9 Jun  6 12:43 .signature -> /dev/null
  67.