summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/exec.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9613de721..3064963d5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-10-19 Peter Stephenson <p.w.stephenson@ntlworld.com>
+
+ * 31851: Src/exec.c: execstring() should display string to
+ be executed with VERBOSE option.
+
2013-10-19 Barton E. Schaefer <schaefer@zsh.org>
* 31849: Doc/Zsh/params.yo: note effect of KSH_ZERO_SUBSCRIPT
diff --git a/Src/exec.c b/Src/exec.c
index e95cad300..d5fe69ec0 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -1027,6 +1027,11 @@ execstring(char *s, int dont_change_job, int exiting, char *context)
Eprog prog;
pushheap();
+ if (isset(VERBOSE)) {
+ zputs(s, stderr);
+ fputc('\n', stderr);
+ fflush(stderr);
+ }
if ((prog = parse_string(s, 0)))
execode(prog, dont_change_job, exiting, context);
popheap();