From: Frank Terbeck Date: Tue, 2 Sep 2008 22:43:37 +0000 (+0200) Subject: zshrc: 'limit stack' needs zsh 4.2.5 or newer (not just 4.*) X-Git-Tag: 0.3.56~3 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=249e436ef73028ebac45308ee7de0332724aa616;hp=545b01cbe7c32ad374ddb840c84bba6d032c4ab9;p=grml-etc-core.git zshrc: 'limit stack' needs zsh 4.2.5 or newer (not just 4.*) --- diff --git a/debian/changelog b/debian/changelog index 1beff66..5c94d60 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +grml-etc-core (0.3.56) unstable; urgency=low + + * zshrc: 'limit stack' needs zsh 4.2.5 or newer (not just 4.*) + + -- Frank Terbeck Wed, 03 Sep 2008 00:42:23 +0200 + grml-etc-core (0.3.55) unstable; urgency=low [ Frank Terbeck ] diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 05c114a..6fdb081 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -109,6 +109,11 @@ is42(){ return 1 } +is425(){ + [[ $ZSH_VERSION == 4.2.<5->* || $ZSH_VERSION == 4.<3->* || $ZSH_VERSION == <5->* ]] && return 0 + return 1 +} + is43(){ [[ $ZSH_VERSION == 4.<3->* || $ZSH_VERSION == <5->* ]] && return 0 return 1 @@ -1899,7 +1904,7 @@ fi # {{{ Use hard limits, except for a smaller stack and no core dumps unlimit -is4 && limit stack 8192 +is425 && limit stack 8192 isgrmlcd && limit core 0 # important for a live-cd-system limit -s # }}}