zsh-workers
 help / color / mirror / code / Atom feed
From: Ulrich Dangel <ml-lists@spamt.net>
To: zsh-workers@sunsite.dk
Subject: Bug in url-quote-magic?
Date: Mon, 12 Jun 2006 18:10:52 +0200	[thread overview]
Message-ID: <20060612161052.GG27340@beaver.spamt.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 384 bytes --]

Hi,
while using url-quote-magic i discoverd a strange behaviour.
If i enter an url, followed by space, and after that a semicolon, the
semicolon is escaped. This is really ugly if i use something like
,----
| while mplayer $url ; do 
|    sleep 10 ; 
| done 
`----

because this gets to, 

,----
| while mplayer $url \; do ..
`----

I attached the diff, hope it helps someone :)

Uli

[-- Attachment #2: url-quote-diff --]
[-- Type: text/plain, Size: 471 bytes --]

--- /usr/share/zsh/4.3.2/functions/Zle/url-quote-magic  2006-05-20 19:55:36.000000000 +0200
+++ url-quote-magic     2006-06-06 01:36:56.332676750 +0200
@@ -108,7 +108,7 @@
 function url-quote-magic {
     setopt localoptions noksharrays extendedglob
     local qkey="${(q)KEYS}"
-    if [[ "$KEYS" != "$qkey" ]]
+    if [[ "$KEYS" != "$qkey" && "$LBUFFER[-1]" != " " ]] 
     then
        local lbuf="$LBUFFER$qkey"
        if [[ "${(Q)LBUFFER}$KEYS" == "${(Q)lbuf}" ]]


             reply	other threads:[~2006-06-12 16:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-12 16:10 Ulrich Dangel [this message]
2006-06-13 14:08 ` Bart Schaefer
2006-06-14  4:20   ` Bart Schaefer
2006-09-20 16:34     ` Ulrich Dangel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060612161052.GG27340@beaver.spamt.net \
    --to=ml-lists@spamt.net \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).