On 4/1/2023 10:29 PM, Eli Zaretskii wrote: > One minor nit: 'message' in a batch session prints to stderr, not to > stdout. !! Thanks for catching that. That actually means there's a small bug (or a missing feature) in Eshell: it doesn't support redirecting stdout and stderr to separate places when using synchronous subprocesses. I've added a note about this to esh-proc.el (fixing it would probably be tricky), and changed 'message' in the tests to be 'princ'. See attached; I'll probably merge this tomorrow unless you catch any remaining issues.