commit bash-20131219 snapshot

This commit is contained in:
Chet Ramey
2013-12-30 09:38:36 -05:00
parent ff3257877e
commit ceae08e044
22 changed files with 11543 additions and 132 deletions
+8 -1
View File
@@ -839,7 +839,9 @@ exp2 ()
(curtok == MOD))
{
int op = curtok;
char *stp, *sltp;
stp = tp;
readtok ();
val2 = exppower ();
@@ -848,7 +850,12 @@ exp2 ()
if (((op == DIV) || (op == MOD)) && (val2 == 0))
{
if (noeval == 0)
evalerror (_("division by 0"));
{
sltp = lasttp;
lasttp = stp;
evalerror (_("division by 0"));
lasttp = sltp;
}
else
val2 = 1;
}