|Subject:||Re: Full-width characters can result in an unwanted space in filenames|
|Date:||Mon, 6 Mar 2017 11:22:25 -0800|
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
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?
|[Prev in Thread]||Current Thread||[Next in Thread]|