Re: when last output lacks \n, bash gets confused about cursor position

2008-08-12 Thread Chet Ramey
> When using 'echo -n' or printf without a final \n, and then using > the Up and Down keys to walk through previous commands, bash can > get confused about its cursor position (or rather its prompt > position) and either leave some stray text in the middle of the > line, or overwrite part of it

when last output lacks \n, bash gets confused about cursor position

2008-08-12 Thread Benno Schulenberg
Hi, When using 'echo -n' or printf without a final \n, and then using the Up and Down keys to walk through previous commands, bash can get confused about its cursor position (or rather its prompt position) and either leave some stray text in the middle of the line, or overwrite part of its pr