Minor tweaks to make this work on Solaris. It doesn't like ! in the
shell, nor -e vs -d in test, and also has a bugged sed so we need to
adjust the expression.


git-svn-id: svn://svn.code.sf.net/p/staden/code/io_lib@3666 ba6f2710-ca9f-427c-89d3-5bf716dbc8e1
Removed uninitialised memory behaviour (worse, freeing an
uninitialised pointer). This triggered crashes on SPARC/Solaris when
testing in multi-threading, but bizarrely never fired on intel/linux
not even under valgrind.


git-svn-id: svn://svn.code.sf.net/p/staden/code/io_lib@3667 ba6f2710-ca9f-427c-89d3-5bf716dbc8e1