From: Frank Terbeck Date: Sun, 17 Mar 2013 18:35:10 +0000 (+0100) Subject: zshrc: Fix `salias' wrt parameter scope X-Git-Tag: v0.8.0~9 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=cb300a40c609b818e87edfc0d35ef2c783c28f59 zshrc: Fix `salias' wrt parameter scope Signed-off-by: Frank Terbeck --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 33b0c26..803e6c0 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -406,6 +406,7 @@ check_com() { salias() { emulate -L zsh local only=0 ; local multi=0 + local key val while [[ $1 == -* ]] ; do case $1 in (-o) only=1 ;;