zshrc: Fix `salias' wrt parameter scope
authorFrank Terbeck <ft@grml.org>
Sun, 17 Mar 2013 18:35:10 +0000 (19:35 +0100)
committerFrank Terbeck <ft@grml.org>
Mon, 18 Mar 2013 20:54:32 +0000 (21:54 +0100)
Signed-off-by: Frank Terbeck <ft@grml.org>
etc/zsh/zshrc

index 33b0c26..803e6c0 100644 (file)
@@ -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 ;;