From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14092 invoked by alias); 15 Jul 2015 16:51:44 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35794 Received: (qmail 15239 invoked from network); 15 Jul 2015 16:51:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00,FSL_HELO_BARE_IP_2, RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.0 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-workers@zsh.org From: Yuri D'Elia Subject: bracketed paste Date: Wed, 15 Jul 2015 18:51:17 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 193.106.183.18 X-Mozilla-News-Host: news://news.gmane.org:119 X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.0 Did the bracketedpaste widget made into 5.0.8? The detailed release notes: http://zsh.sourceforge.net/releases.html are missing, and I'm too lazy to diff ;) In my current code, I decided to strip any blank from the string before quoting and inserting into command line. This has the effect of removing any leading/trailing newlines (or gobs of whitespace, if you're pasting from a web page) without destroying the content. Also, I realized sometimes a final newline was tricking me into thinking that the command was already enter-ed to the shell (but of course, it wasn't). Stripping any final newlines is an improvement. I'd like to do the same using the final widget if possible.