> install --help says it will just "copy SOURCE to DEST", so one would > expect to behave like cp and not break hard links. > > However, because unlink_dest_before_opening is set to true, this will > break links.
Thanks for the report. How do non-GNU install programs behave in this regard? > I haven't checked POSIX though, but if this is actualy a requirement > maybe a POSIX_ME_HARDER hack would make sense here? Nope. install isn't specified by POSIX, so making it depend on POSIXLY_CORRECT is the wrong thing to do. (The name POSIX_ME_HARDER is no longer in use; it was replaced by POSIXLY_CORRECT). -- Eric Blake
--- Begin Message ------ install.c~ 2005-09-23 22:50:49.000000000 +0200 +++ install.c 2007-02-20 12:37:20.000000000 +0100 @@ -129,7 +129,7 @@ { x->copy_as_regular = true; x->dereference = DEREF_ALWAYS; - x->unlink_dest_before_opening = true; + x->unlink_dest_before_opening = false; x->unlink_dest_after_failed_open = false; x->hard_link = false; x->interactive = I_UNSPECIFIED;_______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
--- End Message ---
_______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
