From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17267 invoked by alias); 18 Jul 2014 18:27:18 -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: 32889 Received: (qmail 4578 invoked from network); 18 Jul 2014 18:27:06 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Originating-IP: [86.6.157.246] X-Spam: 0 X-Authority: v=2.1 cv=bPyYIZOZ c=1 sm=1 tr=0 a=BvYiZ/UW0Fmn8Wufq9dPrg==:117 a=BvYiZ/UW0Fmn8Wufq9dPrg==:17 a=NLZqzBF-AAAA:8 a=ngHcUYYLvfkA:10 a=uObrxnre4hsA:10 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=qB732dyoDLrFtdob_twA:9 a=7SZsbH6MP8NZP9zg:21 a=ePX8ebpmAYOX5PU-:21 a=CjuIK1q_8ugA:10 a=I6wTmPyJxzYA:10 Date: Fri, 18 Jul 2014 19:21:27 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: [PATCH] Fix loading of multi-line history entires from disk Message-ID: <20140718192127.661cdbdc@pws-pc.ntlworld.com> In-Reply-To: <140717230109.ZM4757@torch.brasslantern.com> References: <201407171958.s6HJwj5f003940@pws-pc.ntlworld.com> <140717200824.ZM4640@torch.brasslantern.com> <140717230109.ZM4757@torch.brasslantern.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 17 Jul 2014 23:01:09 -0700 Bart Schaefer wrote: > It occurs to me that perhaps there's no point in distinguishing an even > number of backslashes -- if the entire history event ends with a > backslash, it doesn't matter whether there are an even number of them. > > On the other hand, following an odd number of backslashes with a space > or semicolon wouldn't have the right effect either. > > Is it even possible for a history event to end with an odd number of > backslashes? I can't think of one that forms a complete line. You could get it by writing something explicitly of that form to the history. Given zsh's flexibility, there's no law saying people can't save partial lines to the history for subsequent recall and editing. This would be a very special case, though. pws