GNU bug report logs -
#72867
[PATCH] gexp: Make 'local-file' follow symlinks.
Previous Next
Full log
Message #23 received at 72867 <at> debbugs.gnu.org (full text, mbox):
Nigko Yerden <nigko.yerden <at> gmail.com> writes:
> Attila Lendvai wrote:
>> pardon my ignorance, but can you give me a (plausible) example when
>> someone wants to load some files relative to a source file, and also
>> wants to be conscious of symlinks, and chose not to follow them? let
>> alone making that the default anywhere around such operations?
> No, I can't give you an example. The original 'current-source-directory' was
> designed not to follow symlinks. This wasn't my idea. By setting the default
> I just keep the original behavior.
I guess not following symlinks was not design but an oversight.
Profiles like .config/guix/current have lots of symlinks. Perhaps
behavior might change when custom code is processing profiles.
If we ignored possible custom code breakage, this patch could be
simplified, but not to a one-liner, as it canonicalizes paths in both
`current-source-directory' (when not in the load-path) and
`absolute-dirname' (when in the load-path).
Regards,
Florian
This bug report was last modified 261 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.