/// /// Cases in Files /// ===== CASE: FILE test/parse-errors/01-bad-func.sh ===== foo (,) ^ test/parse-errors/01-bad-func.sh:15: Syntax error in expression (near Id.Arith_Comma) ===== CASE: FILE test/parse-errors/02-bad-func.sh ===== foo() ^ test/parse-errors/02-bad-func.sh:3: Unexpected word while parsing compound command (Id.Eof_Real) ===== CASE: FILE test/parse-errors/05-unterminated-single.sh ===== A B echo 'C ^ test/parse-errors/05-unterminated-single.sh:5: Unexpected EOF in single-quoted string that began here ===== CASE: FILE test/parse-errors/06-unterminated-double-long.sh ===== A B echo 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 " ^ test/parse-errors/06-unterminated-double-long.sh:9: Unexpected EOF reading double-quoted string that began here ===== CASE: FILE test/parse-errors/06-unterminated-double.sh ===== A B echo "0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 ^ test/parse-errors/06-unterminated-double.sh:6: Unexpected EOF reading double-quoted string that began here ===== CASE: FILE test/parse-errors/07-unterminated-here-doc-2.sh ===== cat << "$@" ^ test/parse-errors/07-unterminated-here-doc-2.sh:2: Invalid here doc delimiter ===== CASE: FILE test/parse-errors/07-unterminated-here-doc.sh ===== cat < sys.exit(main(sys.argv)) File "/home/uke/oil/bin/oils_for_unix.py", line 232, in main return AppBundleMain(argv) File "/home/uke/oil/bin/oils_for_unix.py", line 198, in AppBundleMain bash_compat=(applet == 'bash')) File "/home/uke/oil/core/shell.py", line 1261, in Main ui.PrintAst(node, flag) File "/home/uke/oil/display/ui.py", line 540, in PrintAst tree = node.PrettyTree(do_abbrev) File "/home/uke/oil/_devbuild/gen/syntax_asdl.py", line 4007, in PrettyTree x1 = self.init.PrettyTree(do_abbrev, trav=trav) File "/home/uke/oil/_devbuild/gen/syntax_asdl.py", line 2198, in PrettyTree x0 = hnode.Leaf(Id_str(self.op_id, dot=False), color_e.UserType) NameError: global name 'Id_str' is not defined test/parse-errors.sh: fatal: Should parse with bin/osh: expected status 0, got 1 FAIL test-arith-integration