]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
shell/function,zsh/rc: Replace $@ with "$@".
[config/dotfiles.git] / zsh / rc
diff --git a/zsh/rc b/zsh/rc
index 84b27f73a35887173f0a1df7131970f88f47dfbc..ccc8ea7638fcb3f85cca76e3fbe2e77f724687a9 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -78,17 +78,17 @@ if [[ $ZSH_VERSION != (4.3.<5->|4.<4->*|<5->*) ]]; then
     # arrays.
     function precmd() {
         for function in $precmd_functions; do
-            $function $@
+            $function "$@"
         done
     }
     function preexec() {
         for function in $preexec_functions; do
-            $function $@
+            $function "$@"
         done
     }
     function chpwd() {
         for function in $chpwd_functions; do
-            $function $@
+            $function "$@"
         done
     }
 fi