Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Check for minimal ZSH version in shell script



Is there a good way to test for a minimal ZSH version in a shell script?

I tried
    if [[ $ZSH_VERSION -ge 5.3]] then
        echo yes
    fi
but that fails if the version has more than one decimal point (e.g. 5.5.1).

Thanks,

 - Michael



Messages sorted by: Reverse Date, Date, Thread, Author