Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Fix loading of multi-line history entires from disk



On Thu, 17 Jul 2014 23:01:09 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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



Messages sorted by: Reverse Date, Date, Thread, Author