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 more, depending on how many lines(?) I entered with the editor). Also, if I then list the history, I notice that both, the part that was
entered in the line before invoking (C-xC-e) and the part actually
executed, are listed in history. The history number shown in the prompt before invoking C-xC-e refers to the partially constructed line (or empty, if nothing was entered). The actual history number I have to use to rerun the command is one higher.
I assume this is not the intended behaviour.