mirror of git://git.code.sf.net/p/zsh/code
31846: fix NOEXEC option in execsimple() optimisation
This commit is contained in:
parent
87c482d751
commit
8879c46a48
|
@ -1,3 +1,7 @@
|
|||
2013-10-18 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 31846: Src/exec.c: fix NOEXEC option in execsimple().
|
||||
|
||||
2013-10-18 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 31840: Completion/Unix/Command/_make: "read" used wrong $IFS
|
||||
|
|
|
@ -1087,6 +1087,9 @@ execsimple(Estate state)
|
|||
if (errflag)
|
||||
return (lastval = 1);
|
||||
|
||||
if (!isset(EXECOPT))
|
||||
return lastval = 0;
|
||||
|
||||
/* In evaluated traps, don't modify the line number. */
|
||||
if (!IN_EVAL_TRAP() && !ineval && code)
|
||||
lineno = code - 1;
|
||||
|
|
Loading…
Reference in New Issue