===== CASE: var sq = / 'foo'+ / ===== ===== CASE: var dq = / "foo"+ / echo $dq ===== var dq = / "foo"+ / ^ [ -c flag ]:2: fatal: POSIX EREs don't have groups without capture, so this node needs () around it. $OIL -c "$@" ^~~~ test/oil-runtime-errors.sh:21: fatal: Exiting with status 1 (command in PID 6789) ===== CASE: echo hi; y = 2 + x + 3 ===== hi echo hi; y = 2 + x + 3 ^ [ -c flag ]:1: fatal: Undefined variable 'x' ===== CASE: if (x) { echo hello } ===== if (x) { echo hello } ^ [ -c flag ]:1: fatal: Undefined variable 'x' ===== CASE: if ($x) { echo hi } ===== if ($x) { echo hi } ^~ [ -c flag ]:1: fatal: Undefined variable 'x' ===== CASE: if (${x}) { echo hi } ===== if (${x}) { echo hi } ^ [ -c flag ]:1: fatal: Undefined variable 'x' ===== CASE: x = / @undef /; echo hi ===== x = / @undef /; echo hi ^~~~~ [ -c flag ]:1: fatal: Undefined variable 'undef' ===== CASE: var x = undef; echo $x ===== var x = undef; echo $x ^~~~~ [ -c flag ]:1: fatal: Undefined variable 'undef' ===== CASE: setvar a = undef ===== setvar a = undef ^~~~~ [ -c flag ]:1: fatal: Undefined variable 'undef'