Rugang Chen writes: > In short, change `" +\\)"` to `" +.*\\)"`. Right. I'm a bit worried that this regexp is getting too many optional parts, but I can't see a better way to handle this case. > I have a question that why eshell dot not use same password prompt > patter in commit-mode. Historical accident, probably. > (setq eshell-password-prompt-regexp comint-password-prompt-regexp) Maybe we should go the other way around though, the eshell regexp looks much simpler (the patch below does not unify them in either direction).