summaryrefslogtreecommitdiffstats
path: root/Src/exec.c
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2013-10-19 23:08:24 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2013-10-19 23:08:24 +0100
commit9a044f1a6ad4ecfdfeff2f89e1685a1d622cb029 (patch)
treed2bdbf69d9301e1c14cb72fa3bb9d7039ca025d7 /Src/exec.c
parent31846: fix NOEXEC option in execsimple() optimisation (diff)
downloadzsh-9a044f1a6ad4ecfdfeff2f89e1685a1d622cb029.tar
zsh-9a044f1a6ad4ecfdfeff2f89e1685a1d622cb029.tar.gz
zsh-9a044f1a6ad4ecfdfeff2f89e1685a1d622cb029.tar.bz2
zsh-9a044f1a6ad4ecfdfeff2f89e1685a1d622cb029.tar.lz
zsh-9a044f1a6ad4ecfdfeff2f89e1685a1d622cb029.tar.xz
zsh-9a044f1a6ad4ecfdfeff2f89e1685a1d622cb029.tar.zst
zsh-9a044f1a6ad4ecfdfeff2f89e1685a1d622cb029.zip
Use VERBOSE option in execstring()
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c5
1 files changed, 5 insertions, 0 deletions
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();