eshell-post-rewrite-command-function is a variable defined in `esh-cmd.el'.
Its value is
identity
This variable may be risky if used as a file-local variable.
Documentation:
Function run after command rewriting is finished.
Takes the (rewritten) command, modifies it as it sees fit and returns
the new result to use instead.