From a9e7fd4e757924dd11279fba5c7808aac6c1df59 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 8 Aug 2010 17:20:54 +0000 Subject: 28137: zsh-mime-handler typo: $argv[0] should be $argv[1] --- ChangeLog | 7 ++++++- Functions/MIME/zsh-mime-handler | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e43316822..60b5492d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-08-08 Peter Stephenson + + * 28137: Functions/MIME/zsh-mime-handler: $argv[0] should be + $argv[1]. + 2010-08-07 Peter Stephenson * Simon Ruderich: 28136: README: typo. @@ -13498,5 +13503,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.5051 $ +* $Revision: 1.5052 $ ***************************************************** diff --git a/Functions/MIME/zsh-mime-handler b/Functions/MIME/zsh-mime-handler index 9dd9cca4d..8d15b4688 100644 --- a/Functions/MIME/zsh-mime-handler +++ b/Functions/MIME/zsh-mime-handler @@ -188,9 +188,9 @@ if [[ $handler = *%s* ]]; then # Probably we ought not even to handle multiple # arguments, but at least the error message ought # to make it obvious what's going on. - zformat -f command $handler s:"$argv[0]" + zformat -f command $handler s:"$argv[1]" else - zformat -f command $handler s:"${(q)argv[0]}" + zformat -f command $handler s:"${(q)argv[1]}" fi if (( list )); then execargs=(${(Q)${(z)command}} ${argv[1,-1]}) -- cgit 1.4.1