Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Issue with histreduceblanks
- X-seq: zsh-users 18003
- From: Raghavendra Prabhu <raghu.prabhu13@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Issue with histreduceblanks
- Date: Thu, 26 Sep 2013 23:17:51 +0530
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=67SlOYRoSJ3I7a8qMa6UQXu0ZmIp4EShDiSPHAxkOyU=; b=SujgSGCuPNqNqrDUX0o79Gz3DISzlkz1uwZid9Y1bqk06LJohuNkouVKDQK6K4K/4F tt5Z30y/kx+H6taiqNg28ejyD7Yn9cy6Jn/ZNszjp8ZjMZxn9/hnTMIS01+eOYIujp0o s+MbUoG/X0DODqCxl5jIXMxW8K/H1H0upwrJhf5JYhMTzC+/IA2K7qHOv/kJ0nYJWZoT 8sOSGZprluYmBj0VRdlfWi/A3+Wej0rhNDE4+pP8OBux83IeAF60kPn4DOvTZK2yhLec XXx2xJY10v4GQST8kT7TJqG7R55peyi3yHugYcolilpyAseJbKv7iNUsL9/+03xM+v4d Zd2g==
- In-reply-to: <130926101254.ZM23201@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20130918185058.GA19235@Archie> <20130918211227.51cdbd0f@pws-pc.ntlworld.com> <CAEtq3tNjNumBv2BZMS0FXUL9-pRWDtGZJ1pZ1NKPw3rxtOFunA@mail.gmail.com> <130926101254.ZM23201@torch.brasslantern.com>
On Thu, Sep 26, 2013 at 10:42 PM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Sep 26, 12:52am, Raghavendra Prabhu wrote:
> }
> } On Thu, Sep 19, 2013 at 1:42 AM, Peter Stephenson
> } <p.w.stephenson@xxxxxxxxxxxx> wrote:
> } >
> } > Are there any non-ASCII characters on the line that might be confusing
> } > the algorithm (the option pre-dates handling of multibyte characters)?
> }
> } Sorry for the delay in replying (it had ended in my Junk due to
> } Precedence headers).
>
> You didn't really answer Peter's question. Also I think something is
> being lost in the cut-and-paste-and-email process, because this ..
Ah, sorry for not replying on that earlier, there are no non-ASCII
characters there, the line is just "Only two kinds of witnesses
exist. The first live in a neighborhood where".
.
>
> } Archie% Only two kinds of witnesses exist. The first live in a
> } neighborhood where
> } zsh: command not found: Only
>
> ... obviously has a newline where there must not have been one in your
> original string.
There is no newline there, it was just that the line was wrapped in the mail.
>To have much hope of debugging this, we need a copy
> of EXACTLY what you typed, including what might be characters that
> "look like" spaces but really are not.
>
> } b) Also tested with print as requested
>
> Did you see/try this?
Yes.
Tested with different combinations:
==================
zsh -f
Archie% setopt histreduceblanks
Archie% Only two kinds of witnesses exist. The first live in a
neighborhood where
zsh: command not found: Only
Archie% Only two kinds of witnesses exist. he fisst lvee in a
neighorrhood werre
Archie% print Only two kinds of witnesses exist. he fisst lvee in a
neighorrhood werre !#:7 !#:8 !#:9
print Only two kinds of witnesses exist. he fisst lvee in a
neighorrhood werre he fisst lvee
Only two kinds of witnesses exist. he fisst lvee in a neighorrhood
werre he fisst lvee
Archie% print Only two kinds of witnesses exist. he fisst leee in a
neighrrrhood werre he fisst veee
Archie% print Only two kinds of witnesses exist. The first live in a
neighborhood where !#:7 !#:8 !#:9
print Only two kinds of witnesses exist. The first live in a
neighborhood where The first live
Only two kinds of witnesses exist. The first live in a neighborhood
where The first live
Archie% print Only two kinds of witnesses exist. he fisst lvee in a
neighorrhood whrre he fisst ivee
Archie%
========================
>
>> If that were the case, I would expect history ops that reference words by
>> position would also be confused. E.g., something like
>>
>> zsh% print Only two kinds of witnesses exist. The first live in a neighborhood where !#:7 !#:8 !#:9
>>
>> would likely substitute the wrong substrings for !#:7 etc., because the
>> same array of word positions is used to condense blanks.
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author