FIX: history garbled on multiline command