How to do <cmd> file | hold file (now cp)

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Thu Sep 13 19:52:12 AEST 1990


In article <13613 at hydra.gatech.EDU> gt0178a at prism.gatech.EDU (BURNS) writes:
> And more to Leslie's point, by adding the chmod, its clear that neither cp
> or > change the attributes of the destination file:

Once again, we're talking about how cp should work. My conception of a
good cp is that it doesn't replace the contents of the destination file;
rather, it copies a given file into a new name, and unlinks that name if
it happens to exist already.

---Dan



More information about the Comp.unix.shell mailing list