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

  1. Xref: sparky comp.unix.wizards:4824 comp.unix.shell:4827 comp.unix.misc:4278
  2. Newsgroups: comp.unix.wizards,comp.unix.shell,comp.unix.misc
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!tamsun.tamu.edu!ski8032
  4. From: ski8032@tamsun.tamu.edu (The Man Behind The Curtain)
  5. Subject: Re: The Problem with UNIX
  6. Message-ID: <1992Nov20.190558.22399@tamsun.tamu.edu>
  7. Organization: Texas A&M University, College Station
  8. References: <id.SY1V.ITA@ferranti.com> <1992Nov19.000136.3970@tamsun.tamu.edu> <id.034V._E5@ferranti.com>
  9. Date: Fri, 20 Nov 1992 19:05:58 GMT
  10. Lines: 45
  11.  
  12. Thus spake peter@ferranti.com (peter da silva):
  13. >In article <1992Nov19.000136.3970@tamsun.tamu.edu> ski8032@tamsun.tamu.edu (The Man Behind The Curtain) writes:
  14. >> echo a > a
  15. >> echo b > b
  16. >> cat a b > b
  17. >> cat: input b is output
  18. >> cat a
  19. >> a
  20. >> cat b
  21. >> a
  22. >
  23. >echo a > a 
  24. >echo b > b 
  25. >cat a b > b 
  26. >b: File exists.
  27. >cat a 
  28. >a
  29. >cat b 
  30. >b
  31. >
  32. >So, what's your problem?
  33.  
  34. Four of the four Un*x systems I just tested react just the way I
  35. described.  You must be using a more sophisticated shell than
  36. that which I am using (tcsh), but I think that it probably only catches
  37. simple problems; once an expression gets even slightly complex,
  38. I would guess that it does not catch all of these kind of things.
  39.  
  40. Is it consistent?  What does tail -10 .fingerees > .fingerees do?
  41. What does echo `cat a b` > b do?  If I do a ln /usr/bin/cat zog; ./zog
  42. a b > b, does it report the same message?  If I write a shell
  43. script foo like this:
  44.  
  45. #!/bin/sh
  46. cat a b
  47.  
  48. does foo > b work correctly?
  49.  
  50. >Peter da Silva / 77487-5012 USA / +1 713 274 5180
  51.  
  52. -- 
  53. Till next time,                \o/   \o/
  54.                                 V \o/ V     email:pinky@tamu.edu
  55. <>  Sam  Inala  <>                 V
  56.  
  57.