I know the difference between ${var:-word}
and ${var-word}
, but I don't see the purpose of using a default value in this condition:
[ -z "${NVM_PROFILE-}" ]
- Why is an empty default value needed there?
- Is it something related to compatibility with other shells (zsh)?