comint-redirect-insert-matching-regexp
comint-redirect-insert-matching-regexp is a variable defined in `comint.el
'.
Its value is nilDocumentation: If non-nil, the text that ends a redirection is included in it. More precisely, the text that matches `comint-redirect-finished-regexp' and therefore terminates an output redirection is inserted in the redirection target buffer, along with the preceding output.