From 68a9bab11da470275fb28bea19e34db51a5093ba Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 10 Oct 2013 17:12:50 +0100 Subject: 31809: Make whitespace clear in trace output for patterns. --- Src/exec.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Src/exec.c') diff --git a/Src/exec.c b/Src/exec.c index 1c44565f9..de1b4848e 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -1845,9 +1845,22 @@ quote_tokenized_output(char *str, FILE *file) case '*': case '?': case '$': + case ' ': putc('\\', file); break; + case '\t': + fputs("$'\\t'", file); + continue; + + case '\n': + fputs("$'\\n'", file); + continue; + + case '\r': + fputs("$'\\r'", file); + continue; + case '=': if (s == str) putc('\\', file); -- cgit 1.4.1