Open ziadsawalha opened 2 years ago
Yes, it's unfortunate. I should change the has()
definition to type -p "$1" >/dev/null
so it only returns true when there is a command. But it would break back-compat and we don't break back-compa.
The best is to replace the rvm check with if type -p rvm >/dev/null; then ...
Describe the bug
has rvm
always returns true because stdlib definesrvm()
To Reproduce On a machine without rvm installed, the following .envrc says ""✅ 'rvm' is detected":
Expected behavior has rvm should not return true (or document an alternative method to detect if rvm is available)
Environment
Additional context Add any other context about the problem here.