Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bracket-paste-magic adds backslashes inside a quoted string if URL is pasted ("regression" compared to pre-5.1 url-quote-magic)
- X-seq: zsh-workers 38429
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Axel Beckert <abe@xxxxxxxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: bracket-paste-magic adds backslashes inside a quoted string if URL is pasted ("regression" compared to pre-5.1 url-quote-magic)
- Date: Sun, 8 May 2016 11:50:26 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=CTWoPh42AW/IzutO49FykOC06RgZNoSyPQ0gwVADJJY=; b=yxFnmpz8oxGnQM2Coj+0jOggKUm+hVj7XYCyuESUNHMCD6pYyx90gKrafh3J63H813 z236Q9PLjz7r9O7kF0RGJSdbs9d1OwjruB9C3uZYUPqTB8QknpnuhTTSwG/h2HBnzM/G V3ao9OfwP2GQgSg7Pa4UycVXf2WmT1fsYXPEefhdNqB8+7A3sLZlW8JKhXijji4i/+QP J1YoqitYyxohDsa+NO3BbHN1MBjGs2Axj/JJQgA61NaB6XzKrfLacYpge4lDGpv2IJXq Q5uqAOa4ZJ0txZNYsEc+gGRmW3YV2RbGifWECtIrOSKvS+w5n8go8W4kH5nGGRadYcOI 9jqw==
- In-reply-to: <20160506205309.GY5029@sym.noone.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20160506205309.GY5029@sym.noone.org>
On May 6, 10:53pm, Axel Beckert wrote:
}
} But with zsh 5.2 (and zsh git HEAD), it looks like this:
}
} % echo https://bugs.debian.org/cgi-bin/pkgreport.cgi\?src\=zsh
}
} % echo "https://bugs.debian.org/cgi-bin/pkgreport.cgi\?src\=zsh
}
} % echo 'https://bugs.debian.org/cgi-bin/pkgreport.cgi\?src\=zsh
}
} While the first example still works as expected, I consider the latter
} two examples to be some kind of regression. No backslashes should be
} added in these cases.
You want
zstyle :bracketed-paste-magic paste-init backward-extend-paste
so that the quote marks that are already on the line are treated as part
of the pasted text.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author