about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-08-08 17:20:54 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-08-08 17:20:54 +0000
commita9e7fd4e757924dd11279fba5c7808aac6c1df59 (patch)
treea986c2cb011dd0a1e179371a0e8365274b431681
parent04f055d7660e7ade7533abdf09b4acab54f7ba67 (diff)
downloadzsh-a9e7fd4e757924dd11279fba5c7808aac6c1df59.tar.gz
zsh-a9e7fd4e757924dd11279fba5c7808aac6c1df59.tar.xz
zsh-a9e7fd4e757924dd11279fba5c7808aac6c1df59.zip
28137: zsh-mime-handler typo: $argv[0] should be $argv[1]
-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]})