Fix one and add another is*() function
authorFrank Terbeck <ft@bewatermyfriend.org>
Thu, 8 Oct 2009 09:26:45 +0000 (11:26 +0200)
committerFrank Terbeck <ft@bewatermyfriend.org>
Thu, 8 Oct 2009 09:26:45 +0000 (11:26 +0200)
The new one is is439 which checks for zsh 4.3.9 and newer.

The fix is in is433, which did not return true for versions like 4.4.x and similar.
That is currently not a problem, but may become once such a version is out.

etc/zsh/zshrc

index 6221861..2dadf9c 100644 (file)
@@ -134,7 +134,12 @@ is43(){
 }
 
 is433(){
-    [[ $ZSH_VERSION == 4.3.<3->* || $ZSH_VERSION == <5->* ]] && return 0
+    [[ $ZSH_VERSION == 4.3.<3->* || $ZSH_VERSION == 4.<4->* || $ZSH_VERSION == <5->* ]] && return 0
+    return 1
+}
+
+is439(){
+    [[ $ZSH_VERSION == 4.3.<9->* || $ZSH_VERSION == 4.<4->* || $ZSH_VERSION == <5->* ]] && return 0
     return 1
 }