Re: edit-and-execute-command, history and PS1

2016-06-08 Thread Chet Ramey
On 6/2/16 11:28 AM, Jure Oder wrote: > Dear all, > > I have noticed strange behaviour if my PS1 variable contains "the history > number of this command" (\!). When the prompt returns after invoking the > edit-and-execute-command (C-xC-e) the history number is not increased. If I > then press retur

edit-and-execute-command, history and PS1

2016-06-02 Thread Jure Oder
Dear all, I have noticed strange behaviour if my PS1 variable contains "the history number of this command" (\!). When the prompt returns after invoking the edit-and-execute-command (C-xC-e) the history number is not increased. If I then press return, the history number is increased by two (or mor