home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!waikato.ac.nz!comp.vuw.ac.nz!cc-server4.massey.ac.nz!acmebbs!kilroy
- Newsgroups: comp.os.coherent
- Subject: Re: Copying files to floppy disks
- Message-ID: <1992Sep05.031256.14742@acme.gen.nz>
- From: kilroy@acme.gen.nz (earthbound misfit, I)
- Date: Sat, 05 Sep 92 03:12:56 GMT
- References: <9208280023.33@rmkhome.UUCP> <2852@monarch.array.com>
- Organization: ACME BBS - Public Access Usenet, Palmerston North, New Zealand
- Lines: 34
-
- mike@array.com (Mike Willett) writes:
-
- > : >>cat screen.tar.Za? >> screen.tar.Z
- > : >>
- > : >>This _appends_ rather than overwrites the screen.tar.Z file.
- > : >
- > : >Not in real UNIX.
- >
- > Somebody want to tell me what real UNIX is? I have been working
- > with this stuff since 1980, and I am yet to see "real" Unix! :)
- > This conversation is a cross post from from alt.aliens.visitors,
- > Right? :)
-
- No. If your cat command as described above won't work with a single ">" then
- whatever you're using doesn't deserve the description "unix compatible".
- Coherent's works.
-
- > cat file3 file2 file1 file >> file2
- >
- > Will cat the files onto the end of file2 in the order that
- > they were put on the command line. file3 will be put on the
- > end of file2, file2 will be put on the end of the original file2,
- > doubling in size, file1 will be put on the end of file2, and file
- > will be put on the end of file2. Right? Wrong. Cat should be
- > smart enough to tell you file2 is input and output, and exit().
-
- Nope, because as you said (in a bit I deleted) cat doesn't know anything
- about stdout redirection, that's something the shell's doing. So how is cat
- supposed to know that stdout is being sent to one of the files it's reading
- from.
-
- - k
- --
-
-