With PS1="\[$(tput bold)\]\h:\w/:[\$?]\\\$\[$(tput sgr0)$(tput cnorm)\] "
if \w expands to such a long string so that the right margin is exactly before the final space in the prompt (ie. the second line starts with that space), display becomes erratic: the display of the input line is shifted to the right by a few spaces on the second line, with the cursor stuck on the left margin. Note that when the final space is removed from the prompt the display works fine. This is a regression from readline 8.1. -- Andreas Schwab, [email protected] GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."
