Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
bracketed-paste-magic error in Putty due to empty $PASTED variable
- X-seq: zsh-workers 44772
- From: Marc Cornellà <marc.cornella@xxxxxxxx>
- To: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: bracketed-paste-magic error in Putty due to empty $PASTED variable
- Date: Fri, 20 Sep 2019 21:23:36 +0000
- Accept-language: ca-ES, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=faP9KowMVHKHydJWQjTKSUpweXXVz9MJr2IVPRgD/9U=; b=aO0V1adnds/28rdkorYhBFYhBXVLIkybT+beGG8H+E1mpOAocqI8sqZ6ha6ZknFyKTCis9uCuyr9ltdZRoB0knSge3HGDJbkQ6wWOkRYU1RCwON32x/gsH0RKkleWBM2JSRBUEcGXHoJhoZah9CmREHnTXKSW6iI7qN5btwG981i4IcwWByhBmAGSHnpbDd/VmtsqO9IxrEPk/iSLmu4dI3eWrA+ymZWtc5XWntuKa4STVHdmF6G2X5fW1NMy4S3kgrpzLnsvIlxTX7NLKa1P8wyuirqefEKsmMS6dTnrJ4pdSWyY7ZcpZT+by3+XJOHOVYfc+rj4Pn2pB/1NVZVPQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AbTSaISf30yGnq/DHhH5yPB4ielWOmMA6KMfcF8EQMTXG1nIMje0ZG3OOG3dQ6YvsA1YS0qkT9dVywDufFZnsLdEkTVA5zmBKTtpqJ6YEAZtmG3BOcSeYARqSc2Wnj8A+nimjY6hdRG6PRtt7ZP+/FKz/dZRgMcy+X92fxHP2zh6zIVptyp+5UWUj4Bg54cc+O3TSoZZvHlqTMli6F1CuIi90CppW9syAdD99vawF2i0jwhkIK4v5KjBu1UEAbhm60LohKv3f8EqjOQwG9TPJJQkxyiSwB+A2rGI3+AX8SRXJPrCT5NYekckE3TBhnZyl3nwOBepd+mcGXmaB9e/LA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=faP9KowMVHKHydJWQjTKSUpweXXVz9MJr2IVPRgD/9U=; b=EJlqwSgkVtuHrv/+4fA2gheKdRO0vItafEdnLGJ9H6GzWwHrMag3eBuQaLalw2osMhJp3mcrIbqRfRDUhGqyVCBl/mCuOqS6Zd4EU2r6eFNUnNQ/cdkmz18oeJm36KGvK5syep0Os/1lhKjhpkJGAKNIrZKZmxsIphap0fwn5psp7BekCXxqjIpMHMkoeGs59DD5jip2IOLljHPraJWkxFc0LGfYGZ6mxGsIV28gIbte3JQc4VSv58tgD0srVuoVqo42uD1dECEOBjsV2cH/yG7J9azWqH3ckENGpgiYNCEK4kT02eejQzaPAWKEE2wmsZRSy83NZ6UGS5w8gO0l2Q==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Thread-index: AQHVb/mqyS1PKtt3CEylZG8JEaf0SQ==
- Thread-topic: bracketed-paste-magic error in Putty due to empty $PASTED variable
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author