|
楼主 |
发表于 2011-6-23 18:08:53
|
显示全部楼层
找到了,是 PS1 定义中的 \[ .... \] 转义字符导致的!
Note the use of \[...\], which tells bash to ignore the non-printing
control characters when calculating the width of the prompt. Otherwise
line editing commands get confused while placing the cursor. |
|