-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix plugin for shells with no_unset
(aka set -u
) and ksh_arrays
shell options set
#713
base: master
Are you sure you want to change the base?
Conversation
no_unset
shell option (aka set -u
) setno_unset
(aka set -u
) and ksh_arrays
shell options set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me.
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
foo Having |
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? |
No description provided.