-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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: #2094 #3465
fix: #2094 #3465
Conversation
The bulletproof way to verify this would be to add |
Thanks. Are we trying to support zsh versions older than 5.0.2? zsh 5.0.2 predates fzf so I'm not sure if this is the right goal. |
If you want to enforce zsh version >= 5, you can do it like this: if [[ $ZSH_VERSION != <5->.* ]]; then
print -ru2 -- "Your version of zsh is too old: $ZSH_VERSION < 5.0"
return 1
fi I'm not saying you should enforce zsh version >= 5 although in my open source zsh code I do that. The number of users on zsh < 5 is exceedingly tiny. |
It's your call to decide, as everything else appears to function properly. I've never encountered this zsh syntax, but it works: <5->.* This syntax seems more common: if (( ${ZSH_VERSION%%.*} < 5 )); then
echo "Your zsh version is too old: $ZSH_VERSION < 5.0"
return 1
fi |
Your check is also fine but the |
I will certainly take your advice and use the correct code. Thank you again for your help! I will proceed once the maintainer has made a decision on how to handle the issue. |
I don't think we should put in extra effort to support zsh 4, but this patch is simple and short enough, so I'll merge it. Thanks. |
Description
Zsh versions below 5, causing an unwanted message when sourcing the file.
verify their version again. @fluency03