metomi/rose#884: prototype bash completion
metomi/rose#884: test-battery in progress
metomi/rose#884: test-battery fixes
metomi/rose#884: pass test-battery
metomi/rose#884: tidy up code