Fixed as per Martin's review.
* doc/developers/testing.txt:
Add a shelli-like tests section.
* bzrlib/tests/test_script.py:
Update scripts for new prefixes and fix echo tests.
* bzrlib/tests/script.py: Move doc to doc/developers/testing.txt.
(_script_to_commands): Commands are prefixed by '$', expected
output are not prefixed anymore.
(ScriptRunner.do_echo): Put spaces between arguments.