From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1008 invoked by alias); 18 Jul 2014 06:01:14 -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: 32887 Received: (qmail 23203 invoked from network); 18 Jul 2014 06:01:12 -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 From: Bart Schaefer Message-id: <140717230109.ZM4757@torch.brasslantern.com> Date: Thu, 17 Jul 2014 23:01:09 -0700 In-reply-to: <140717200824.ZM4640@torch.brasslantern.com> Comments: In reply to Bart Schaefer "Re: [PATCH] Fix loading of multi-line history entires from disk" (Jul 17, 8:08pm) References: <201407171958.s6HJwj5f003940@pws-pc.ntlworld.com> <140717200824.ZM4640@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: [PATCH] Fix loading of multi-line history entires from disk MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Jul 17, 8:08pm, Bart Schaefer wrote: } Subject: Re: [PATCH] Fix loading of multi-line history entires from disk } } On Jul 17, 8:58pm, Peter Stephenson wrote: } } Subject: Re: [PATCH] Fix loading of multi-line history entires from disk } } } } Bart Schaefer wrote: } } > So, check out the following. This includes Augie's patch (backs out } } > 30433) and adds an attempt at changing the output (appends a space after } } > an even number of backslashes appearing at the end of an entry). } } } } That seems as minimal and compatible as we're going to get. } } OK, I'm going to go ahead and push 32882 while we discuss alternate } end-of-entry markers. 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?