1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-04 06:14:50 +01:00

Use VERBOSE option in execstring()

This commit is contained in:
Peter Stephenson 2013-10-19 23:08:24 +01:00
parent 8879c46a48
commit 9a044f1a6a
2 changed files with 10 additions and 0 deletions

View file

@ -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-18 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 31846: Src/exec.c: fix NOEXEC option in execsimple().

View file

@ -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();