Issue bash

Fixes several outstanding issues -- see commit messages for details.