From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6815 invoked by alias); 1 Sep 2015 23:48:32 -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: 36391 Received: (qmail 29442 invoked from network); 1 Sep 2015 23:48:31 -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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=aJPZLsuYUmu93cY9BaQE1DuUM3cGCfyi0ffaNWWfoEM=; b=SKoXrxkht78x5EqLAn/Maf7pNYPOT5a6gtrWOMzztFRsIVeTUeq/jNh6KssuSQlOpQ Ib0PXc9HagVigDjfxsLioV3HL+oTzOFKwncaSLD0hDv58LWuuy4rh2jZZm7P03id1wHP fbOh5rpEEUsSzXI6Bqv8S474Fc/UGyEEX8f0y0XlLURNV77lUDSTmoY1i+YYFfJtZsWK CU847mBF6XrITOog4fM2XdWsJGJl+MP+R4jijHeEXBD9NLpT2IlXq+JWxv5vsEaciW8E pty//ZTbE0rQuAf/xq0+KikCOfluHQfn6BjphW7X5EuOVQWIc/NdbQjJz6+357/ORZHO mRpg== X-Gm-Message-State: ALoCoQnvSdOFyImPf9W7nTW3qrT96meyEDpV/I0msyPb+mZOCPvq+s1HLt74i8YesAFrn/Hag7st X-Received: by 10.182.76.100 with SMTP id j4mr18443517obw.14.1441151310535; Tue, 01 Sep 2015 16:48:30 -0700 (PDT) From: Bart Schaefer Message-Id: <150901164827.ZM2480@torch.brasslantern.com> Date: Tue, 1 Sep 2015 16:48:27 -0700 In-Reply-To: <20150830202530.GF30848@bosko.stateful.de> Comments: In reply to Carsten Hey "Re: bracketed paste - chopping trailing newlines" (Aug 30, 10:25pm) References: <20150829012452.GE30848@bosko.stateful.de> <150828220057.ZM14497@torch.brasslantern.com> <20150830202530.GF30848@bosko.stateful.de> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: bracketed paste - chopping trailing newlines MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 30, 10:25pm, Carsten Hey wrote: } } * Bart Schaefer [2015-08-28 22:00 -0700]: } > Another way to approach this would be for a trailing newline to actually } > be taken as accept-line, provided that RBUFFER is empty. ... } } This is a very interesting idea and I might use a variant of it in my } ~/.zshrc. I don't think that this would be adequate as default } behaviour, though, since it breaks the assumption users could have that } a pasted command never runs without being acknowledged first, but YMMV. Except for the circumstance that we shipped 5.1 in this state, users of any previous version of zsh would never have that assumption; it has never been true, before. } > Here's a way to try that on for size: } } I assume your prototype was not meant to handle all corner cases in } a perfect way It was meant to do exactly what I described, and that's all. If there are corner cases that doesn't cover, are they worth the effort?