I discovered that the problem is specific to my PS1 settings, but a bug
nevertheless. The prompt I've used for years is:
PS1='\[\033]0;\w\007\033[32m\][\h]: \[\033[33m ${PWD##*/}\033[0m\] '
This shows [current machine] : current folder where the current machine
is greenish and the current
2010/1/15 Derek Greer:
I discovered that the problem is specific to my PS1 settings, but a bug
nevertheless. The prompt I've used for years is:
PS1='\[\033]0;\w\007\033[32m\][\h]: \[\033[33m ${PWD##*/}\033[0m\] '
Only non-printing must be enclosed in \[ ... \] , but you've got
${PWD##*/}