home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / coherent / 4254 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  1.7 KB

  1. Path: sparky!uunet!wupost!waikato.ac.nz!comp.vuw.ac.nz!cc-server4.massey.ac.nz!acmebbs!kilroy
  2. Newsgroups: comp.os.coherent
  3. Subject: Re: Copying files to floppy disks
  4. Message-ID: <1992Sep05.031256.14742@acme.gen.nz>
  5. From: kilroy@acme.gen.nz (earthbound misfit, I)
  6. Date: Sat, 05 Sep 92 03:12:56 GMT
  7. References: <9208280023.33@rmkhome.UUCP> <2852@monarch.array.com>
  8. Organization: ACME BBS - Public Access Usenet, Palmerston North, New Zealand
  9. Lines: 34
  10.  
  11. mike@array.com (Mike Willett) writes:
  12.  
  13. > : >>cat screen.tar.Za? >> screen.tar.Z
  14. > : >>
  15. > : >>This _appends_ rather than overwrites the screen.tar.Z file.
  16. > : >
  17. > : >Not in real UNIX. 
  18. >     Somebody want to tell me what real UNIX is?  I have been working
  19. >     with this stuff since 1980, and I am yet to see "real" Unix!  :)
  20. >     This conversation is a cross post from from alt.aliens.visitors,
  21. >     Right?  :)
  22.  
  23. No. If your cat command as described above won't work with a single ">" then
  24. whatever you're using doesn't deserve the description "unix compatible".
  25. Coherent's works.
  26.  
  27. >     cat file3 file2 file1 file >> file2
  28. >     Will cat the files onto the end of file2 in the order that
  29. >     they were put on the command line.  file3 will be put on the
  30. >     end of file2, file2 will be put on the end of the original file2,
  31. >     doubling in size, file1 will be put on the end of file2, and file
  32. >     will be put on the end of file2.  Right?  Wrong.  Cat should be
  33. >     smart enough to tell you file2 is input and output, and exit().
  34.  
  35. Nope, because as you said (in a bit I deleted) cat doesn't know anything
  36. about stdout redirection, that's something the shell's doing. So how is cat
  37. supposed to know that stdout is being sent to one of the files it's reading
  38. from.
  39.  
  40.                         - k
  41. -- 
  42.  
  43.