Xref: utzoo comp.unix.questions:26792 comp.unix.internals:984 Path: utzoo!utgpu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!think.com!barmar From: barmar@think.com (Barry Margolin) Newsgroups: comp.unix.questions,comp.unix.internals,alt.unix.wizards Subject: Re: rcp behavior Message-ID: <1990Nov8.231935.3900@Think.COM> Date: 8 Nov 90 23:19:35 GMT References: <1990Nov5.192620.1467@nbc1.ge.com> Sender: news@Think.COM Organization: Thinking Machines Corporation, Cambridge MA, USA Lines: 25 In article <1990Nov5.192620.1467@nbc1.ge.com> scott@nbc1.GE.COM (Scott Barman) writes: > rcp some_file nbc1:~scott/src/zz > >allegedly copying the same file into itself. I did this several times >before I realized what I was doing. No messages, error or otherwise. > >HOWEVER, it did not destroy the copy of the file--THANKFULLY! My >question is why? How does rcp work so that if I mess up like above, my >8k of carefully constructed data doesn't disappear? I suspect you lucked out, due to asynchronous timing and caching. "rcp srcfile host:destfile" is effectively equivalent to rsh host "cat >destfile"