An extension to readline that reads and parses a multi-line shell command