This used to cause some echo write/invalid argument errors. Simplest fix is to use readlink with -f for absolute path and -n to remove trailing newline. See previous discussion here: https://github.com/void-linux/void-packages/issues/13024