mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-18 13:01:05 +02:00
31809: Make whitespace clear in trace output for patterns.
This commit is contained in:
parent
dc272d0d14
commit
68a9bab11d
2 changed files with 18 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-10-10 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 31809: Src/exec.c: make whitespace clear in trace output for
|
||||
patterns.
|
||||
|
||||
2013-10-08 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* Eric Cook: 31801: Completion/Linux/Command/_btrfs: some
|
||||
|
|
13
Src/exec.c
13
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);
|
||||
|
|
Loading…
Reference in a new issue