Fix plugin for shells with no_unset (aka set -u) and ksh_arrays shell options set#713
Fix plugin for shells with no_unset (aka set -u) and ksh_arrays shell options set#713ntninja wants to merge 2 commits intozsh-users:masterfrom
no_unset (aka set -u) and ksh_arrays shell options set#713Conversation
no_unset shell option (aka set -u) setno_unset (aka set -u) and ksh_arrays shell options set
|
Just going to comment on this: |
|
|
is incorrect and the latest message in romkatv/powerlevel10k #2652 is incorrect. When you source a function like this: $ cat ./foo && . ./foo
break_nounset() {
printf 'foo%s\n' "${this_variable_does_not_exist}"
}it returns different results based on user settings $ set -u && break_nounset
break_nounset:1: this_variable_does_not_exist: parameter not set
$ set +u && break_nounset
fooHaving |
|
That's the whole point. I must emphasize, zsh-autosuggestions is designed to run in interactive session, it's expected to have sane defaults in interactive session, |
It appears that much of the codebase does allow for a user to work with it interactively, even if I see plenty of benefit in publishing changes that would allow this plugin to degrade gracefully and work for users coming with various options set. What’s the benefit of preventing this merge? |
|
+1 to @LucasLarson; and for people who use there's now at least 4 different users who want this. Is there any reason not to merge? |
|
Regarding no_unset (set -u), it is addressed at #811, which is merged and release with v0.7.1. Consider if this is still useful e.g. is Or at least remove the part with regarding to unset, then it can possible be merged if ksh_arrays is wanted by people. |
No description provided.