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 <blees@dcon.de>
This commit is contained in:
Karsten Blees
2015-05-07 14:09:00 +02:00
parent 2113021567
commit dac3c16ec9

View File

@@ -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 && echo \"$line\"",
"cat >/dev/tty && read -r line </dev/tty && echo \"$line\"",
NULL
};
const char *echo_off[] = { "sh", "-c", "stty -echo </dev/tty", NULL };