Skip to content

Conversation

@tyll
Copy link

@tyll tyll commented Jan 7, 2020

readlink without -f will return the relative value of the symlink and
realpath will fail for values such as ../scm/repo/script.sh when this
is in ~/bin and the script is called via the path. readlink will
properly canonicalize the path when -f is specified, therefore just
use it.

readlink without `-f` will return the relative value of the symlink and
realpath will fail for values such as `../scm/repo/script.sh` when this
is in `~/bin` and the script is called via the path. readlink will
properly canonicalize the path when `-f` is specified, therefore just
use it if available. readlink on MacOS does not support it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant