mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
11066: false || true was trigerring trap on ZERR
This commit is contained in:
parent
f3be526791
commit
9420498acf
2 changed files with 9 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2000-05-02 Peter Stephenson <pws@cambridgesiliconradio.com>
|
||||
|
||||
* 11066: Src/exec.c: suppress doing in and/or when at the end
|
||||
of a sequence of &&/|| when another sublist follows.
|
||||
|
||||
2000-05-02 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 11065: Completion/Commands/_complete_debug: small fix to avoid
|
||||
|
|
|
|||
|
|
@ -842,7 +842,8 @@ execlist(Estate state, int dont_change_job, int exiting)
|
|||
* for this sublist. */
|
||||
donetrap = 1;
|
||||
goto sublist_done;
|
||||
}
|
||||
} else if (WC_SUBLIST_TYPE(code) == WC_SUBLIST_END)
|
||||
donetrap = 1;
|
||||
}
|
||||
cmdpush(CS_CMDAND);
|
||||
break;
|
||||
|
|
@ -867,7 +868,8 @@ execlist(Estate state, int dont_change_job, int exiting)
|
|||
* for this sublist. */
|
||||
donetrap = 1;
|
||||
goto sublist_done;
|
||||
}
|
||||
} else if (WC_SUBLIST_TYPE(code) == WC_SUBLIST_END)
|
||||
donetrap = 1;
|
||||
}
|
||||
cmdpush(CS_CMDOR);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue