1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-26 04:30:27 +01:00

28137: zsh-mime-handler typo: $argv[0] should be $argv[1]

This commit is contained in:
Peter Stephenson 2010-08-08 17:20:54 +00:00
parent 04f055d766
commit a9e7fd4e75
2 changed files with 8 additions and 3 deletions

View file

@ -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 $
*****************************************************

View file

@ -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]})