On Sun, Mar 5, 2017 at 9:39 AM, L A Walsh <b...@tlinx.org> wrote:

> Chet Ramey wrote:
>
>> On 3/4/17 12:53 AM, Misaki wrote
>>
>>> Full-width character, followed by at least one full word with a space
>>> after it.
>>>
>>> Example: あa a
>>> With trailing space.
>>>
>>>
>>
>> This is a display artifact. If there is one physical space left on the
>> screen line, but the character to be printed occupies more than one space,
>> bash needs to wrap before the end of the screen line, and it needs to
>> keep track of that.
>>
> [...]
> But try this:
>
>
> echo 'あa a '|wc -m
> 6
>
> There should only be 5 characters.
>
> If I cut/paste her text (in quotes) directly into 'wc -m' (so it
> doesn't go through bash, but is taken directly from 'wc' on its
> stdin), then I get '7' (2 extra chars for the quotes):
>
>  wc -m
>>
> 'あa a '7
>        ^^ pressed Ctl-D twice to not end line w/another char (like LF).
>
> Maybe that examples allows you to duplicate the problem?
>
>
>
Am I mistaken in thinking that this is the trailing newline from echo, and
that without it the results are consistent?

Reply via email to