GNU bug report logs - #33573
--add-missing --copy should replace symlinks with real files

Previous Next

Package: automake;

Reported by: Ben Elliston <bje <at> air.net.au>

Date: Sun, 2 Dec 2018 06:47:01 UTC

Severity: wishlist

Tags: confirmed, easy, help

Full log


View this message in rfc822 format

From: Karl Berry <karl <at> freefriends.org>
To: trojkan <at> gmail.com
Cc: bogdro_rep <at> gmx.us, automake-patches <at> gnu.org
Subject: bug#33573: Patch to replace symlinks with files
Date: Sun, 1 Jan 2023 16:02:23 -0700
    FWIW, as a user I think this is the expected behavior. The option is 
    named --add-missing, so if the file is not missing, I expect nothing to 
    happen.

I more or less agree, but the original suggestion from Ben
(https://debbugs.gnu.org/cgi/bugreport.cgi?bug=33573) was for
--add-missing --copy to overwrite existing symlinks with files, because
of the --copy. So the current behavior of silently ignoring existing
entries doesn't suit everyone. But I don't think silently overwriting
symlinks is right either.

I can see that specifying both --add-missing and --copy leaves it rather
indeterminate what should happen with existing symlinks. In practice, I
doubt people would want to end up with some symlinks and some files for
the "missing" list of files, which is what would generally happen now.

Hence my idea of simply reporting the situation (not failing, just
warning), and if they want to overwrite symlinks with files, also use
--force.

It occurs to me that, in the analogous situation from the other side,
when --add-missing is given without --copy, one could argue that a
warning should equally be given if a file (not symlink) exists. But
somehow that feels like a step too far, although I can't think of a real
argument against it. --best, karl.




This bug report was last modified 2 years and 164 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.