Just tried to follow the Debian alternative chain of symlinks to locate JAVA_HOME: I had to repeat the symlink_target call until a regular file is reached. This could be the default behaviour of symlink_target, or it's behaviour with a ~recurse:true option.
I would find this more coherent with stat behaviour in the case of a symlinks chain: it renders the stats of the file at the end of the symlink chain, not the stat of the next symlink.
Just tried to follow the Debian alternative chain of symlinks to locate JAVA_HOME: I had to repeat the
symlink_target
call until a regular file is reached. This could be the default behaviour ofsymlink_target
, or it's behaviour with a~recurse:true
option.I would find this more coherent with
stat
behaviour in the case of a symlinks chain: it renders the stats of the file at the end of the symlink chain, not the stat of the next symlink.Best regards