Fix running in shells with -u/-o nounset option set#299
Conversation
Synchronized from rupa/z#299
|
interesting
|
I just like seeing error messages when mistyping variable names. Except for having submit patches to OMZ every now and then, there is nothing “hard mode” at all about this. 😛
I tend to avoid writing it that way to reduce namespace pollution a bit, but if you prefer it that way I don't mind updating the PR accordingly. |
|
ah fair, namespace pollution. Let me think about that a bit - I was definitely more concerned with avoiding it when I first wrote this tool, than I am now - but it's still definitely on my mind. thanks for letting me know the details of your use case - makes sense, just never really occured to me :) |
|
Hello. I don't know if this is worth adding onto this PR (since I found it from the same issues as above) but 213 is missing a [ -z "${_Z_NO_RESOLVE_SYMLINKS+x}" ] || _Z_RESOLVE_SYMLINKS="-P"
if type compctl >/dev/null 2>&1; then
# zsh
[ "-z ${_Z_NO_PROMPT_COMMAND+x}" ] || {Changes |
No description provided.