eshell-separate-commands

eshell-separate-commands is a compiled Lisp function in `esh-cmd.el'.

(eshell-separate-commands TERMS SEPARATOR &optional REVERSED LAST-TERMS-SYM)

Separate TERMS using SEPARATOR.
If REVERSED is non-nil, the list of separated term groups will be
returned in reverse order. If LAST-TERMS-SYM is a symbol, its value
will be set to a list of all the separator operators found (or '(list
nil)' if none).