From: "Marc Cornellà" <marc.cornella@live.com>
To: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: bracketed-paste-magic error in Putty due to empty $PASTED variable
Date: Fri, 20 Sep 2019 21:23:36 +0000 [thread overview]
Message-ID: <VI1P190MB06370A893204212FC6D2982F84880@VI1P190MB0637.EURP190.PROD.OUTLOOK.COM> (raw)
[-- Attachment #1: Type: text/plain, Size: 818 bytes --]
This error was reported on Oh My Zsh:
bracketed-paste-magic:zle:47: not enough arguments for -U
If I enable tracing of the bracketed-paste-magic function this is where it errors:
+bracketed-paste-magic:46> NUMERIC=1
+bracketed-paste-magic:47> zle -U -
bracketed-paste-magic:zle:47: not enough arguments for -U
The zle command is supposed to pass in $PASTED, but since it isn't quoted the zle call
fails with an error. Looking through the commit history of the bracketed-paste-magic file
it seems that commit 9cfd26bf10f530d746afadf3a04c4cf401fbbb9d was overwritten and
so the quotes aren't there anymore.
Pasting still works, but the error is really annoying. I don't really understand the zle system
enough to know why $PASTED is empty, but just adding the quotes back again fixes it.
Thanks
next reply other threads:[~2019-09-20 21:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-20 21:23 Marc Cornellà [this message]
2019-09-24 17:09 ` Bart Schaefer
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=VI1P190MB06370A893204212FC6D2982F84880@VI1P190MB0637.EURP190.PROD.OUTLOOK.COM \
--to=marc.cornella@live.com \
--cc=zsh-workers@zsh.org \
/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).