From 249e436ef73028ebac45308ee7de0332724aa616 Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Wed, 3 Sep 2008 00:43:37 +0200 Subject: [PATCH] zshrc: 'limit stack' needs zsh 4.2.5 or newer (not just 4.*) --- debian/changelog | 6 ++++++ etc/zsh/zshrc | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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 # }}} -- 2.1.4