[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Commands containing UTF8 characters mess up bash history

From: Yuri
Subject: Commands containing UTF8 characters mess up bash history
Date: Sat, 01 Mar 2014 13:23:57 -0800
User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

I manipulate with some files containing UTF8 characters. The only commands I run are these:
./some-cmd < ../some-dir/utf8-containing-file-name.txt
vim ../some-dir/utf8-containing-file-name.txt

After a while of running of such commands, and going back and forth in history and rerunning them, the history becomes messed up. The 'unkown character' question mark appears in the middle, some of them become concatenated. History becomes unusable.

I am sure you will be able to reproduce this. Otherwise is kind of hard to create a test case for this kind of problem. But I am sure bash doesn't treat command, or some part of it, as utf8, and confuses number of characters and number of bytes.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]