Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!lavaca.uh.edu!uhnix1!sugar!ficc!peter From: peter@ficc.ferranti.com (Peter da Silva) Newsgroups: comp.unix.shell Subject: Re: How to do file | hold file Message-ID: Date: 9 Sep 90 21:02:40 GMT References: <1215@tardis.Tymnet.COM> <8029:Sep903:04:5390@kramden.acf.nyu.edu> <1990Sep9.140057.15833@mp.cs.niu.edu> <12272:Sep916:37:0290@kramden.acf.nyu.edu> Reply-To: peter@ficc.ferranti.com (Peter da Silva) Organization: Xenix Support, FICC Lines: 18 In article <12272:Sep916:37:0290@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes: > No; it preserves the multiple links to the original rather than trashing > them Which is what it should do. Let's say the file in question is "/bin/smail" and the link to it is "/bin/rmail"... do you really want these files to get out of sync? We have an editor people use here called "aedit", and it behaves the way you want "cp" to behave. It's caused more problems than you would believe. Multiple links to a file should remain under normal operation.. they're there for a reason. > Since you can get the write-over behavior with the shell's >, why do you > need it in cp? Designing for the common case. You can get the uncommon case by doing an "rm" first, so why do you need it in cp? -- Peter da Silva. `-_-' +1 713 274 5180. 'U` peter@ferranti.com