Working to get the shell logic under test.

See issue #183 for rational.