1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-25 17:20:25 +02: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

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