about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--Functions/MIME/zsh-mime-handler4
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  <p.w.stephenson@ntlworld.com>
+
+	* 28137: Functions/MIME/zsh-mime-handler: $argv[0] should be
+	$argv[1].
+
 2010-08-07  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* 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]})