From dac3c16ec912e9155dce1cd6956668879e17cebc Mon Sep 17 00:00:00 2001 From: Karsten Blees Date: Thu, 7 May 2015 14:09:00 +0200 Subject: [PATCH] fixup! mingw: Support `git_terminal_prompt` with more terminals Use 'read -r', so that '\' is interpreted verbatim rather than as escape character. Signed-off-by: Karsten Blees --- compat/terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/terminal.c b/compat/terminal.c index d9e5474deb..9e3c7f37cb 100644 --- a/compat/terminal.c +++ b/compat/terminal.c @@ -98,7 +98,7 @@ static char *xterm_prompt(const char *prompt, int echo) { const char *read_input[] = { "sh", "-c", - "cat >/dev/tty && read line /dev/tty && read -r line