bash miscalculates the length of a prompt if it includes non-printing escape sequences, and then makes a mess of wrapping input lines. You have to put \[ and \] around those sequences.
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.