bash-4.3-rc2 overlay

This commit is contained in:
Chet Ramey
2014-01-29 17:00:07 -05:00
parent 8581f42df9
commit b6e23235f2
144 changed files with 8686 additions and 5727 deletions
+10 -1
View File
@@ -839,7 +839,9 @@ exp2 ()
(curtok == MOD))
{
int op = curtok;
char *stp, *sltp;
stp = tp;
readtok ();
val2 = exppower ();
@@ -848,7 +850,14 @@ exp2 ()
if (((op == DIV) || (op == MOD)) && (val2 == 0))
{
if (noeval == 0)
evalerror (_("division by 0"));
{
sltp = lasttp;
lasttp = stp;
while (lasttp && *lasttp && whitespace (*lasttp))
lasttp++;
evalerror (_("division by 0"));
lasttp = sltp;
}
else
val2 = 1;
}