<p>You're right, it's not the built-in behaviour. But bash on Ubuntu defaults to <code>ignoreboth</code> (setting <code>ignoredups:ignorespace</code>), which is the reason for opening this issue.<br>
Setting <code>erasedups</code> globally is questionable, as you remove lines from any previous and possibly unrelated history chain, which gets confusing if you want to replicate it (especially in a non-Geany context).<br>
I don't see how to set <code>erasedups</code> only for the Geany VTE (probably not desirable also in a Geany context): matching a <code>env</code> variable in the bash rc doesn't seem very reliable. Diffing <code>env</code> for the Geany VTE and a standard interactive session for example gives <code>VTE_VERSION</code> only for the latter on this particular machine, and may have side effects in environments set by other programs.<br>
So my feature request stands as in the OP.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/issues/650#issuecomment-139187725">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ8L1HEflNJqlqjAFCf46nCcgNr0Gks5owUjGgaJpZM4F6qLj.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/650#issuecomment-139187725"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>