eshell-quote-backslash

eshell-quote-backslash is a compiled Lisp function in `esh-arg.el'.

(eshell-quote-backslash STRING &optional INDEX)

Intelligently backslash the character occurring in STRING at INDEX.
If the character is itself a backslash, it needs no escaping.