wait -n' in posix mode; fix for long messages in readline; fix for short reads by
fg' from a key binding; posix mode
This apparently requires GNU sed