* PATCH: icky typo in zsh-mime-handler
@ 2010-08-08 16:35 Peter Stephenson
0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2010-08-08 16:35 UTC (permalink / raw)
To: Zsh hackers list
This made handlers with special characters in (in particular quotes)
fail. Not sure how this didn't get picked up (but quite clearly my
fault).
Index: Functions/MIME/zsh-mime-handler
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/MIME/zsh-mime-handler,v
retrieving revision 1.12
diff -p -u -r1.12 zsh-mime-handler
--- Functions/MIME/zsh-mime-handler 23 May 2010 19:54:03 -0000 1.12
+++ Functions/MIME/zsh-mime-handler 8 Aug 2010 16:32:11 -0000
@@ -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]})
--
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-08 16:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-08 16:35 PATCH: icky typo in zsh-mime-handler Peter Stephenson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).