summaryrefslogtreecommitdiffstats
path: root/Src/exec.c
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2013-10-10 09:54:00 -0700
committerBart Schaefer <schaefer@zsh.org>2013-10-10 09:54:00 -0700
commit5faab39a7e87d180e52bb6ebb9bf101f176cc40b (patch)
tree68cb70d094557e27ab60acf67f47c9b7f37add94 /Src/exec.c
parentunposted: fix typo (diff)
parent31810: tests for simple XTRACE output from conditions (diff)
downloadzsh-5faab39a7e87d180e52bb6ebb9bf101f176cc40b.tar
zsh-5faab39a7e87d180e52bb6ebb9bf101f176cc40b.tar.gz
zsh-5faab39a7e87d180e52bb6ebb9bf101f176cc40b.tar.bz2
zsh-5faab39a7e87d180e52bb6ebb9bf101f176cc40b.tar.lz
zsh-5faab39a7e87d180e52bb6ebb9bf101f176cc40b.tar.xz
zsh-5faab39a7e87d180e52bb6ebb9bf101f176cc40b.tar.zst
zsh-5faab39a7e87d180e52bb6ebb9bf101f176cc40b.zip
Merge branch 'master' of git://git.code.sf.net/p/zsh/code
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c13
1 files changed, 13 insertions, 0 deletions
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);