eshell-get-target
eshell-get-target is a compiled Lisp function in `esh-io.el
'.
(eshell-get-target TARGET &optional MODE)
Convert TARGET, which is a raw argument, into a valid output target.
MODE is either `overwrite', `append' or `insert'; if it is omitted or nil,
it defaults to `insert'.