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

  1. Xref: sparky comp.unix.wizards:4715 comp.unix.shell:4726 comp.unix.misc:4187
  2. Path: sparky!uunet!usc!rpi!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.92Nov16064653@grymoire.crd.ge.com>
  7. Date: 16 Nov 92 11:46:53 GMT
  8. References: <1992Nov9.172715.16367@cs.wisc.edu>
  9.     <aldavi01.721333614@starbase.spd.louisville.edu>
  10.     <1992Nov13.094336.2341@aber.ac.uk>
  11. Sender: usenet@crd.ge.com (Required for NNTP)
  12. Reply-To: barnett@crdgw1.ge.com
  13. Organization: GE Corp. R & D, Schenectady, NY
  14. Lines: 15
  15. In-Reply-To: btk@aber.ac.uk's message of 13 Nov 92 09:43:36 GMT
  16. Nntp-Posting-Host: grymoire.crd.ge.com
  17.  
  18. In article <1992Nov13.094336.2341@aber.ac.uk> btk@aber.ac.uk (Ben Ketteridge) writes:
  19. >For example, just to take the 'cat a b > b' problem, you are suggesting IMHO that
  20. >the shell shouldn't check redirection of output against the input and warn the
  21. >user in this case.
  22.  
  23. Suppose the command was
  24.     prog >b
  25. and "prog" was a shell script that said "cat a b"? Or a C, Lisp, or
  26. Perl program?
  27.  
  28. How can the shell "know" that the output is also an input? It can't.
  29.  
  30.     
  31. --
  32. Bruce Barnett <barnett@crd.ge.com> uunet!crdgw1!barnett
  33.