Function: eshell-input-filter-initial-space
eshell-input-filter-initial-space is a byte-compiled function defined
in em-hist.el.gz.
Signature
(eshell-input-filter-initial-space INPUT)
Documentation
Do not add input beginning with empty space to history.
Returns nil if INPUT is prepended by blank space, otherwise non-nil.
Probably introduced at or before Emacs version 26.1.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/em-hist.el.gz
(defun eshell-input-filter-initial-space (input)
"Do not add input beginning with empty space to history.
Returns nil if INPUT is prepended by blank space, otherwise non-nil."
(not (string-match-p "\\`\\s-+" input)))