Function: eshell-separate-commands
eshell-separate-commands is a byte-compiled function defined in
esh-cmd.el.gz.
This function is obsolete since 30.1; use eshell-split-commands
instead.
Signature
(eshell-separate-commands TERMS SEPARATOR &optional REVERSED LAST-TERMS-SYM)
Documentation
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 (nil) if none).
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-cmd.el.gz
(defun 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 (nil)
if none)."
(declare (obsolete eshell-split-commands "30.1"))
(let ((split-terms (eshell-split-commands terms separator reversed
last-terms-sym)))
(if last-terms-sym
(progn
(set last-terms-sym (cdr split-terms))
(car split-terms))
split-terms)))