mirror of
https://github.com/git/git.git
synced 2026-02-10 09:48:09 +00:00
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:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user