home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / wizards / 4658 < prev    next >
Encoding:
Text File  |  1992-11-13  |  1.4 KB  |  35 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!gatech!ukma!netnews.louisville.edu!starbase.spd.louisville.edu!aldavi01
  3. From: aldavi01@starbase.spd.louisville.edu (Arlie Davis)
  4. Subject: Re: The Problem with UNIX
  5. Sender: news@netnews.louisville.edu (Netnews)
  6. Message-ID: <aldavi01.721645237@starbase.spd.louisville.edu>
  7. Date: Fri, 13 Nov 1992 09:00:37 GMT
  8. Reply-To: Arlie Davis <aldavi01@starbase.spd.louisville.edu>
  9. References: <96927@netnews.upenn.edu> <1992Nov11.210729.11676@cs.wisc.edu> <BARNETT.92Nov12092045@grymoire.crd.ge.com> <1992Nov13.030529.6207@bilver.uucp>
  10. Nntp-Posting-Host: starbase.spd.louisville.edu
  11. Organization: University of Louisville
  12. Lines: 21
  13.  
  14. In <1992Nov13.030529.6207@bilver.uucp> bill@bilver.uucp (Bill Vermillion) writes:
  15.  
  16. > And some of the lastest bourne shells also have fixed it.  In sysv.3.2
  17. > from Esix if I type
  18.  
  19. > cat a b > b    I get this result
  20.  
  21. > cat: input/output files 'b' identical
  22.  
  23. > So after a decade these have been solved.
  24.  
  25. This was a fix to cat, not any of the shells.  And b still gets clobbered.
  26. It *is* an improvement, though, and mine acts the same way.
  27.  
  28. I responded in email to Bryan So that a decent solution is a (hypothetical
  29. but terribly simple) program called "buffer" would reads its stdin until EOF,
  30. then opens and writes all to the filename in argv[1].  So, "cat a b > b"
  31. becomes "cat a b | buffer b".  He seemed to like the suggestion.
  32.  
  33. -- 
  34. lrwx------   1 aldavi01 emacsstu       9 Jun  6 12:43 .signature -> /dev/null
  35.