Commit 5da7193a authored by Bjorn Munch's avatar Bjorn Munch

upmerge 58257

parents 32b7c750 32ea0708
...@@ -5628,7 +5628,9 @@ void do_block(enum block_cmd cmd, struct st_command* command) ...@@ -5628,7 +5628,9 @@ void do_block(enum block_cmd cmd, struct st_command* command)
if (*expr_start == '!') if (*expr_start == '!')
{ {
not_expr= TRUE; not_expr= TRUE;
expr_start++; /* Step past the '!' */ expr_start++; /* Step past the '!', then any whitespace */
while (*expr_start && my_isspace(charset_info, *expr_start))
expr_start++;
} }
/* Find ending ')' */ /* Find ending ')' */
expr_end= strrchr(expr_start, ')'); expr_end= strrchr(expr_start, ')');
......
...@@ -403,7 +403,9 @@ true-inner ...@@ -403,7 +403,9 @@ true-inner
true-inner again true-inner again
true-outer true-outer
Counter is greater than 0, (counter=10) Counter is greater than 0, (counter=10)
Counter should still be 10, is 10
Counter is not 0, (counter=0) Counter is not 0, (counter=0)
Not space var works
Counter is true, (counter=alpha) Counter is true, (counter=alpha)
while with string, only once while with string, only once
5<7 5<7
......
...@@ -1141,6 +1141,11 @@ if (!$counter) ...@@ -1141,6 +1141,11 @@ if (!$counter)
{ {
echo Counter is not 0, (counter=10); echo Counter is not 0, (counter=10);
} }
if (! $counter)
{
let $counter=5;
}
echo Counter should still be 10, is $counter;
let $counter=0; let $counter=0;
if($counter) if($counter)
{ {
...@@ -1150,6 +1155,10 @@ if (!$counter) ...@@ -1150,6 +1155,10 @@ if (!$counter)
{ {
echo Counter is not 0, (counter=0); echo Counter is not 0, (counter=0);
} }
if (! $counter)
{
echo Not space var works;
}
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# Test if with some non-numerics # Test if with some non-numerics
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment