title: How to disable editing my history in bash
body: <p>In bash, when I go back in history, edit some command and run it, this edited command is appended to history and the original one is left intact. But every once in a while I somehow manage to affect the original command, i.e. my edit replaces the original command back in history. I can't put my finger on how this happens.</p>
  
  <p>Can someone explain? My goal is to avoid this, so any edit to a previous command always gets appended to history and never replaces the original.</p>