From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8786 invoked by alias); 8 Sep 2015 23:48:53 -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: 36455 Received: (qmail 9928 invoked from network); 8 Sep 2015 23:48:53 -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,FSL_HELO_NON_FQDN_1 autolearn=ham autolearn_force=no version=3.4.0 Date: Wed, 9 Sep 2015 01:48:51 +0200 From: Carsten Hey To: zsh-workers@zsh.org Subject: Re: bracketed paste - chopping trailing newlines Message-ID: <20150908234851.GK30848@bosko.stateful.de> References: <20150829012452.GE30848@bosko.stateful.de> <150828220057.ZM14497@torch.brasslantern.com> <20150830202530.GF30848@bosko.stateful.de> <150901164827.ZM2480@torch.brasslantern.com> <20150903235936.GH30848@bosko.stateful.de> <20150906095224.GD1895@tarsus.local2> <4397.1441547465@thecus.kiddle.eu> <20150908233306.GJ30848@bosko.stateful.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150908233306.GJ30848@bosko.stateful.de> User-Agent: Mutt/1.5.21 (2010-09-15) * Carsten Hey [2015-09-09 01:33 +0200]: > If you paste a command with two trailing newlines into zsh 5.1 running > in an xterm, the result looks like this (an underline is used as > cursor): > > % cp -a /data /mnt/foo > _ > > If you paste a command with one trailing newline into zsh 5.1 running in > a screen (the latest release, not the 5.x development branch), the > result looks like this: > > % cp -a /data /mnt/foo > _ If you paste a command with two trailing newlines into screen, the result looks the same. The additional newline does not influence whether the command is run. > As you notice, both are indistinguishable, but only the first one shows > a running command, and the second one shows a paste waiting to be > accepted. This was wrong. The first one shows a paste waiting to be accepted and the second one shows a running command (I did not make this error on purpose).