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:
parent
8879c46a48
commit
9a044f1a6a
2 changed files with 10 additions and 0 deletions
|
@ -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().
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue