My friend Matt found the issue. I had copied the gb.Terminal code that used
TerminalView.kill to stop the Terminal in the
Form_Close() routine. This was added as the TerminalView does not close when the Form is closed.
By setting up a Process
pBash As Process the TerminalView will start with
pBash = TerminalView1.Exec(["bash"]) and then close the Process cleanly with
pBash.close and the
.bash_history file will correctly update.
Thanks Matt.