The dosym utility now supports an optional parameter to automatically convert a symlink into a relative representation, which is very useful for symlinks within chroots and other scenarios.
PMS specifies that the algorithm should return a path equivalent to the following shell function (using tools from GNU coreutils 8.32):
dosym_relative_path() {
local link=$(realpath -m -s "/${2#/}")
local linkdir=$(dirname "${link}")
realpath -m -s --relative-to="${linkdir}" "$1"
}
The
dosym
utility now supports an optional parameter to automatically convert a symlink into a relative representation, which is very useful for symlinks within chroots and other scenarios.PMS specifies that the algorithm should return a path equivalent to the following shell function (using tools from GNU coreutils 8.32):
Merging without a merge commit.