eshell-parse-command-input
eshell-parse-command-input is a compiled Lisp function in `esh-mode.el
'.
(eshell-parse-command-input BEG END &optional ARGS)
Parse the command input from BEG to END.
The difference is that `eshell-parse-command' expects a complete
command string (and will error if it doesn't get one), whereas this
function will inform the caller whether more input is required.
If nil is returned, more input is necessary (probably because a
multi-line input string wasn't terminated properly). Otherwise, it
will return the parsed command.