Results for ysh-proc-meta.test.sh

statusyshysh_ALT
pass 66
FAIL 11
total77
caseyshysh_ALTdescription
0pass pass with eval builtin command, in global scope
1pass pass with eval builtin command, in local scope
2pass pass with eval builtin command, making them global with names() and setVar()
3FAIL FAIL with parseCommand() then io->eval(), in local scope
detailsdetails
4pass pass with parseCommand() then io->eval(cmd, vars={out_dict: {}})
5pass pass with evalToDict()
6pass pass with runtime REFLECTION via __invoke__ - no parsing
12 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

ysh3 with parseCommand() then io->eval(), in local scope

[ysh stdout] Expected 'prefix a\nprefix b\n', got '(value.Command\n frag: \n (cmd_frag.Expr\n c: \n (Proc\n keyword: \n (Token\n id: Id.KW_Proc\n length: 4\n col: 0\n line: \n (SourceLine\n line_num: 1\n content: "proc echo_a(prefix) {\\n"\n src: \n (source.Dynamic\n what: "parseCommand()"\n location: \n (Token\n id: Id.Op_LParen\n length: 1\n col: 26\n line: \n (SourceLine\n line_num: 9\n content: " var cmd = parseCommand(s)\\n"\n src: (source.Stdin comment:"")\n )\n )\n )\n )\n )\n name: (Token id:Id.Lit_Chars length:6 col:5 line:...0x7f7737f57c00)\n sig: \n (proc_sig.Closed\n word: \n (ParamGroup\n params: [\n (Param\n blame_tok: (Token id:Id.Expr_Name length:6 col:12 line:...0x7f7737f57c00)\n name: prefix\n )\n ]\n )\n )\n body: \n (BraceGroup\n left: (Token id:Id.Lit_LBrace length:1 col:20 line:...0x7f7737f57c00)\n children: [\n (command.Simple\n blame_tok: \n (Token\n id: Id.Lit_Chars\n length: 4\n col: 2\n line: \n (SourceLine\n line_num: 2\n content: " echo $prefix a\\n"\n src: ...0x7f7737bef460\n )\n )\n more_env: []\n words: [\n (CompoundWord parts:[...0x7f7737beb668])\n (CompoundWord\n parts: [\n (SimpleVarSub\n tok: (Token id:Id.VSub_DollarName length:7 col:7 line:...0x7f7737f57d60)\n )\n ]\n )\n (CompoundWord\n parts: [(Token id:Id.Lit_Chars length:1 col:15 line:...0x7f7737f57d60)]\n )\n ]\n is_last_cmd: F\n )\n ]\n right: \n (Token\n id: Id.Lit_RBrace\n length: 1\n col: 0\n line: (SourceLine line_num:3 content:"}\\n" src:...0x7f7737bef460)\n )\n )\n )\n )\n captured_frame: [\n Dict\n ARGV\n (Cell exported:F readonly:F nameref:F val:(value.List items:[]))\n result\n (Cell exported:F readonly:F nameref:F val:(value.Dict d:[Dict]))\n param\n (Cell exported:F readonly:F nameref:F val:(value.Str s:a))\n s\n (Cell\n exported: F\n readonly: F\n nameref: F\n val: (value.Str s:"proc echo_a(prefix) {\\n echo $prefix a\\n}\\n")\n )\n cmd\n (Cell exported:F readonly:F nameref:F val:...0x7f7737f57db8)\n ]\n module_frame: [\n Dict\n ARGV\n (Cell exported:F readonly:F nameref:F val:(value.List items:[]))\n UID\n (Cell exported:F readonly:F nameref:F val:(value.Str s:1000))\n EUID\n (Cell exported:F readonly:F nameref:F val:(value.Str s:1000))\n PPID\n (Cell exported:F readonly:F nameref:F val:(value.Str s:43098))\n OPTIND\n (Cell exported:F readonly:F nameref:F val:(value.Str s:1))\n IFS\n (Cell exported:F readonly:F nameref:F val:(value.Str s:" \\t\\n"))\n HOSTNAME\n (Cell exported:F readonly:F nameref:F val:(value.Str s:a171a6c813cd))\n OSTYPE\n (Cell exported:F readonly:F nameref:F val:(value.Str s:linux))\n PS4\n (Cell\n exported: F\n readonly: F\n nameref: F\n val: (value.Str s:"${SHX_indent}${SHX_punct}${SHX_pid_str} ")\n )\n COMP_WORDBREAKS\n (Cell exported:F readonly:F nameref:F val:(value.Str s:" \\t\\n\\"\'><=;|&(:"))\n TMP\n (Cell\n exported: T\n readonly: F\n nameref: F\n val: (value.Str s:/home/uke/oil/_tmp/spec-tmp/ysh-proc-meta.test.sh.43092/03-ysh)\n )\n REPO_ROOT\n (Cell exported:T readonly:F nameref:F val:(value.Str s:/home/uke/oil))\n PYTHONPATH\n (Cell exported:T readonly:F nameref:F val:(value.Str s:"/home/uke/oil:/home/uke/oil/vendor"))\n PWD\n (Cell\n exported: T\n readonly: F\n nameref: F\n val: (value.Str s:/home/uke/oil/_tmp/spec-tmp/ysh-proc-meta.test.sh.43092/03-ysh)\n )\n SH\n (Cell exported:T readonly:F nameref:F val:(value.Str s:/home/uke/oil/bin/ysh))\n LC_ALL\n (Cell exported:T readonly:F nameref:F val:(value.Str s:C.UTF-8))\n PATH\n (Cell\n exported: T\n readonly: F\n nameref: F\n val: \n (value.Str\n s: \n"/home/uke/oil/test/../spec/bin:/home/uke/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/uke/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/uke/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/uke/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/uke/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/home/uke/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/uke/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/uke/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/uke/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/uke/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/home/uke/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/uke/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/uke/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/uke/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/uke/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/home/uke/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/uke/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/uke/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/uke/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/uke/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"\n )\n )\n LOCALE_ARCHIVE\n (Cell exported:T readonly:F nameref:F val:(value.Str s:""))\n OILS_GC_ON_EXIT\n (Cell exported:T readonly:F nameref:F val:(value.Str s:""))\n SHELLOPTS\n (Cell exported:F readonly:T nameref:F val:(value.Str s:""))\n YSH_HISTFILE\n (Cell\n exported: F\n readonly: F\n nameref: F\n val: (value.Str s:/home/uke/.local/share/oils/ysh_history)\n )\n p\n (Cell\n exported: F\n readonly: F\n nameref: F\n val: \n (value.Proc\n name: p\n name_tok: \n (Token\n id: Id.Lit_Chars\n length: 1\n col: 5\n line: (SourceLine line_num:1 content:"proc p {\\n" src:...0x7f7737c49b90)\n )\n sig: (proc_sig__Open)\n body: \n (BraceGroup\n left: (Token id:Id.Lit_LBrace length:1 col:7 line:...0x7f7737f57368)\n children: [\n (command.VarDecl\n keyword: \n (Token\n id: Id.KW_Var\n length: 3\n col: 2\n line: \n (SourceLine\n line_num: 2\n content: " var result = {}\\n"\n src: ...0x7f7737c49b90\n )\n )\n lhs: [\n (NameType\n left: (Token id:Id.Expr_Name length:6 col:6 line:...0x7f7737f57418)\n name: result\n )\n ]\n rhs: \n (expr.Dict\n left: (Token id:Id.Op_LBrace length:1 col:15 line:...0x7f7737f57418)\n keys: []\n values: []\n )\n )\n (command.ForEach\n keyword: \n (Token\n id: Id.KW_For\n length: 3\n col: 2\n line: \n (SourceLine\n line_num: 3\n content: " for param in a b {\\n"\n src: ...0x7f7737c49b90\n )\n )\n iter_names: [param]\n iterable: \n (for_iter.Words\n words: [\n (CompoundWord\n parts: [\n (Token\n id: Id.Lit_Chars\n length: 1\n col: 15\n line: ...0x7f7737f57578\n tval: a\n )\n ]\n )\n (CompoundWord\n parts: [\n (Token\n id: Id.Lit_Chars\n length: 1\n col: 17\n line: ...0x7f7737f57578\n tval: b\n )\n ]\n )\n ]\n )\n body: \n (BraceGroup\n left: (Token id:Id.Lit_LBrace length:1 col:19 line:...0x7f7737f57578)\n children: [\n (command.VarDecl\n keyword: \n (Token\n id: Id.KW_Var\n length: 3\n col: 4\n line: \n (SourceLine\n line_num: 4\n content: " var s = \\"\\"\\"\\n"\n src: ...0x7f7737c49b90\n )\n )\n lhs: [\n (NameType\n left: (Token id:Id.Expr_Name length:1 col:8 line:...0x7f7737f575d0)\n name: s\n )\n ]\n rhs: \n (DoubleQuoted\n left: \n (Token\n id: Id.Left_TDoubleQuote\n length: 3\n col: 12\n line: ...0x7f7737f575d0\n )\n parts: [\n (Token\n id: Id.Lit_CharsWithoutPrefix\n length: 10\n col: 4\n line: \n (SourceLine\n line_num: 5\n content: " proc echo_$param(prefix) {\\n"\n src: ...0x7f7737c49b90\n )\n tval: "proc echo_"\n )\n (SimpleVarSub\n tok: \n (Token\n id: Id.VSub_DollarName\n length: 6\n col: 14\n line: ...0x7f7737f57628\n tval: param\n )\n )\n (Token\n id: Id.Lit_Chars\n length: 11\n col: 20\n line: ...0x7f7737f57628\n tval: "(prefix) {\\n"\n )\n (Token\n id: Id.Lit_CharsWithoutPrefix\n length: 7\n col: 4\n line: \n (SourceLine\n line_num: 6\n content: " echo \\\\$prefix $param\\n"\n src: ...0x7f7737c49b90\n )\n tval: " echo "\n )\n (word_part.EscapedLiteral\n token: \n (Token\n id: Id.Lit_EscapedChar\n length: 2\n col: 11\n line: ...0x7f7737f57680\n )\n ch: "$"\n )\n (Token\n id: Id.Lit_Chars\n length: 7\n col: 13\n line: ...0x7f7737f57680\n tval: "prefix "\n )\n (SimpleVarSub\n tok: \n (Token\n id: Id.VSub_DollarName\n length: 6\n col: 20\n line: ...0x7f7737f57680\n tval: param\n )\n )\n (Token\n id: Id.Lit_Chars\n length: 1\n col: 26\n line: ...0x7f7737f57680\n tval: "\\n"\n )\n (Token\n id: Id.Lit_CharsWithoutPrefix\n length: 2\n col: 4\n line: \n (SourceLine\n line_num: 7\n content: " }\\n"\n src: ...0x7f7737c49b90\n )\n tval: "}\\n"\n )\n ]\n right: \n (Token\n id: Id.Right_DoubleQuote\n length: 1\n col: 6\n line: \n (SourceLine\n line_num: 8\n content: " \\"\\"\\"\\n"\n src: ...0x7f7737c49b90\n )\n )\n )\n )\n (command.VarDecl\n keyword: (Token id:Id.KW_Var length:3 col:4 line:...0x7f7737f57890)\n lhs: [\n (NameType\n left: (Token id:Id.Expr_Name length:3 col:8 line:...0x7f7737f57890)\n name: cmd\n )\n ]\n rhs: \n (expr.FuncCall\n func: \n (expr.Var\n left: \n (Token\n id: Id.Expr_Name\n length: 12\n col: 14\n line: ...0x7f7737f57890\n )\n name: parseCommand\n )\n args: \n (ArgList\n left: ...0x7f7737be1258\n pos_args: [\n (expr.Var\n left: \n (Token\n id: Id.Expr_Name\n length: 1\n col: 27\n line: ...0x7f7737f57890\n )\n name: s\n )\n ]\n named_args: []\n right: \n (Token\n id: Id.Op_RParen\n length: 1\n col: 28\n line: ...0x7f7737f57890\n )\n )\n )\n )\n (command.Simple\n blame_tok: \n (Token\n id: Id.Lit_Chars\n length: 2\n col: 4\n line: \n (SourceLine\n line_num: 10\n content: " pp asdl_ (cmd)\\n"\n src: ...0x7f7737c49b90\n )\n tval: pp\n )\n more_env: []\n words: [\n (CompoundWord parts:[...0x7f7737be12c0])\n (CompoundWord\n parts: [\n (Token\n id: Id.Lit_Chars\n length: 5\n col: 7\n line: ...0x7f7737f57998\n tval: asdl_\n )\n ]\n )\n ]\n typed_args: \n (ArgList\n left: (Token id:Id.Op_LParen length:1 col:13 line:...0x7f7737f57998)\n pos_args: [\n (expr.Var\n left: \n (Token\n id: Id.Expr_Name\n length: 3\n col: 14\n line: ...0x7f7737f57998\n )\n name: cmd\n )\n ]\n named_args: []\n right: (Token id:Id.Op_RParen length:1 col:17 line:...0x7f7737f57998)\n )\n is_last_cmd: F\n )\n (command.Expr\n keyword: \n (Token\n id: Id.KW_Call\n length: 4\n col: 4\n line: \n (SourceLine\n line_num: 13\n content: " call io->eval(cmd)\\n"\n src: ...0x7f7737c49b90\n )\n )\n e: \n (expr.FuncCall\n func: \n (Attribute\n obj: \n (expr.Var\n left: \n (Token\n id: Id.Expr_Name\n length: 2\n col: 9\n line: ...0x7f7737f57aa0\n )\n name: io\n )\n op: \n (Token\n id: Id.Expr_RArrow\n length: 2\n col: 11\n line: ...0x7f7737f57aa0\n )\n attr: \n (Token\n id: Id.Expr_Name\n length: 4\n col: 13\n line: ...0x7f7737f57aa0\n )\n attr_name: eval\n ctx: expr_context.Store\n )\n args: \n (ArgList\n left: \n (Token\n id: Id.Op_LParen\n length: 1\n col: 17\n line: ...0x7f7737f57aa0\n )\n pos_args: [\n (expr.Var\n left: \n (Token\n id: Id.Expr_Name\n length: 3\n col: 18\n line: ...0x7f7737f57aa0\n )\n name: cmd\n )\n ]\n named_args: []\n right: \n (Token\n id: Id.Op_RParen\n length: 1\n col: 21\n line: ...0x7f7737f57aa0\n )\n )\n )\n )\n (command.Simple\n blame_tok: \n (Token\n id: Id.Lit_Chars\n length: 6\n col: 4\n line: \n (SourceLine\n line_num: 15\n content: " echo_a zz\\n"\n src: ...0x7f7737c49b90\n )\n )\n more_env: []\n words: [\n (CompoundWord parts:[...0x7f7737be1b48])\n (CompoundWord\n parts: [(Token id:Id.Lit_Chars length:2 col:11 line:...0x7f7737f57b50)]\n )\n ]\n is_last_cmd: F\n )\n ]\n right: \n (Token\n id: Id.Lit_RBrace\n length: 1\n col: 2\n line: (SourceLine line_num:16 content:" }\\n" src:...0x7f7737c49b90)\n )\n )\n )\n (command.Simple\n blame_tok: \n (Token\n id: Id.Lit_Chars\n length: 6\n col: 2\n line: \n (SourceLine\n line_num: 18\n content: " echo_a prefix\\n"\n src: ...0x7f7737c49b90\n )\n )\n more_env: []\n words: [\n (CompoundWord parts:[...0x7f7737f28f58])\n (CompoundWord\n parts: [(Token id:Id.Lit_Chars length:6 col:9 line:...0x7f7737f57c58)]\n )\n ]\n is_last_cmd: F\n )\n (command.Simple\n blame_tok: \n (Token\n id: Id.Lit_Chars\n length: 6\n col: 2\n line: \n (SourceLine\n line_num: 19\n content: " echo_b prefix\\n"\n src: ...0x7f7737c49b90\n )\n )\n more_env: []\n words: [\n (CompoundWord parts:[...0x7f7737beb0b8])\n (CompoundWord\n parts: [(Token id:Id.Lit_Chars length:6 col:9 line:...0x7f7737f57cb0)]\n )\n ]\n is_last_cmd: F\n )\n ]\n right: \n (Token\n id: Id.Lit_RBrace\n length: 1\n col: 0\n line: (SourceLine line_num:20 content:"}\\n" src:...0x7f7737c49b90)\n )\n )\n sh_compat: F\n module_frame: [\n Dict\n ARGV\n ...0x7f7737f46830\n UID\n ...0x7f7737f46890\n EUID\n ...0x7f7737f468f0\n PPID\n ...0x7f7737f46950\n OPTIND\n ...0x7f7737f469b0\n IFS\n ...0x7f7737f46a10\n HOSTNAME\n ...0x7f7737f46a70\n OSTYPE\n ...0x7f7737f46ad0\n PS4\n ...0x7f7737f46b30\n COMP_WORDBREAKS\n ...0x7f7737f46b90\n TMP\n ...0x7f7737f46bf0\n REPO_ROOT\n ...0x7f7737f46c50\n PYTHONPATH\n ...0x7f7737f46cb0\n PWD\n ...0x7f7737f46d10\n SH\n ...0x7f7737f46d70\n LC_ALL\n ...0x7f7737f46dd0\n PATH\n ...0x7f7737f46e30\n LOCALE_ARCHIVE\n ...0x7f7737f46e90\n OILS_GC_ON_EXIT\n ...0x7f7737f46ef0\n SHELLOPTS\n ...0x7f7737f46f50\n YSH_HISTFILE\n ...0x7f7737f46fb0\n p\n ...0x7f7737bd6170\n ]\n )\n )\n ]\n)\n'

stdout:
(value.Command
  frag: 
    (cmd_frag.Expr
      c: 
        (Proc
          keyword: 
            (Token
              id: Id.KW_Proc
              length: 4
              col: 0
              line: 
                (SourceLine
                  line_num: 1
                  content: "proc echo_a(prefix) {\n"
                  src: 
                    (source.Dynamic
                      what: "parseCommand()"
                      location: 
                        (Token
                          id: Id.Op_LParen
                          length: 1
                          col: 26
                          line: 
                            (SourceLine
                              line_num: 9
                              content: "    var cmd = parseCommand(s)\n"
                              src: (source.Stdin comment:"")
                            )
                        )
                    )
                )
            )
          name: (Token id:Id.Lit_Chars length:6 col:5 line:...0x7f7737f57c00)
          sig: 
            (proc_sig.Closed
              word: 
                (ParamGroup
                  params: [
                    (Param
                      blame_tok: (Token id:Id.Expr_Name length:6 col:12 line:...0x7f7737f57c00)
                      name: prefix
                    )
                  ]
                )
            )
          body: 
            (BraceGroup
              left: (Token id:Id.Lit_LBrace length:1 col:20 line:...0x7f7737f57c00)
              children: [
                (command.Simple
                  blame_tok: 
                    (Token
                      id: Id.Lit_Chars
                      length: 4
                      col: 2
                      line: 
                        (SourceLine
                          line_num: 2
                          content: "  echo $prefix a\n"
                          src: ...0x7f7737bef460
                        )
                    )
                  more_env: []
                  words: [
                    (CompoundWord parts:[...0x7f7737beb668])
                    (CompoundWord
                      parts: [
                        (SimpleVarSub
                          tok: (Token id:Id.VSub_DollarName length:7 col:7 line:...0x7f7737f57d60)
                        )
                      ]
                    )
                    (CompoundWord
                      parts: [(Token id:Id.Lit_Chars length:1 col:15 line:...0x7f7737f57d60)]
                    )
                  ]
                  is_last_cmd: F
                )
              ]
              right: 
                (Token
                  id: Id.Lit_RBrace
                  length: 1
                  col: 0
                  line: (SourceLine line_num:3 content:"}\n" src:...0x7f7737bef460)
                )
            )
        )
    )
  captured_frame: [
    Dict
    ARGV
    (Cell exported:F readonly:F nameref:F val:(value.List items:[]))
    result
    (Cell exported:F readonly:F nameref:F val:(value.Dict d:[Dict]))
    param
    (Cell exported:F readonly:F nameref:F val:(value.Str s:a))
    s
    (Cell
      exported: F
      readonly: F
      nameref: F
      val: (value.Str s:"proc echo_a(prefix) {\n  echo $prefix a\n}\n")
    )
    cmd
    (Cell exported:F readonly:F nameref:F val:...0x7f7737f57db8)
  ]
  module_frame: [
    Dict
    ARGV
    (Cell exported:F readonly:F nameref:F val:(value.List items:[]))
    UID
    (Cell exported:F readonly:F nameref:F val:(value.Str s:1000))
    EUID
    (Cell exported:F readonly:F nameref:F val:(value.Str s:1000))
    PPID
    (Cell exported:F readonly:F nameref:F val:(value.Str s:43098))
    OPTIND
    (Cell exported:F readonly:F nameref:F val:(value.Str s:1))
    IFS
    (Cell exported:F readonly:F nameref:F val:(value.Str s:" \t\n"))
    HOSTNAME
    (Cell exported:F readonly:F nameref:F val:(value.Str s:a171a6c813cd))
    OSTYPE
    (Cell exported:F readonly:F nameref:F val:(value.Str s:linux))
    PS4
    (Cell
      exported: F
      readonly: F
      nameref: F
      val: (value.Str s:"${SHX_indent}${SHX_punct}${SHX_pid_str} ")
    )
    COMP_WORDBREAKS
    (Cell exported:F readonly:F nameref:F val:(value.Str s:" \t\n\"'><=;|&(:"))
    TMP
    (Cell
      exported: T
      readonly: F
      nameref: F
      val: (value.Str s:/home/uke/oil/_tmp/spec-tmp/ysh-proc-meta.test.sh.43092/03-ysh)
    )
    REPO_ROOT
    (Cell exported:T readonly:F nameref:F val:(value.Str s:/home/uke/oil))
    PYTHONPATH
    (Cell exported:T readonly:F nameref:F val:(value.Str s:"/home/uke/oil:/home/uke/oil/vendor"))
    PWD
    (Cell
      exported: T
      readonly: F
      nameref: F
      val: (value.Str s:/home/uke/oil/_tmp/spec-tmp/ysh-proc-meta.test.sh.43092/03-ysh)
    )
    SH
    (Cell exported:T readonly:F nameref:F val:(value.Str s:/home/uke/oil/bin/ysh))
    LC_ALL
    (Cell exported:T readonly:F nameref:F val:(value.Str s:C.UTF-8))
    PATH
    (Cell
      exported: T
      readonly: F
      nameref: F
      val: 
        (value.Str
          s: 
"/home/uke/oil/test/../spec/bin:/home/uke/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/uke/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/uke/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/uke/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/uke/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/home/uke/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/uke/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/uke/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/uke/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/uke/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/home/uke/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/uke/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/uke/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/uke/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/uke/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/home/uke/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/uke/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/uke/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/uke/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/uke/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
        )
    )
    LOCALE_ARCHIVE
    (Cell exported:T readonly:F nameref:F val:(value.Str s:""))
    OILS_GC_ON_EXIT
    (Cell exported:T readonly:F nameref:F val:(value.Str s:""))
    SHELLOPTS
    (Cell exported:F readonly:T nameref:F val:(value.Str s:""))
    YSH_HISTFILE
    (Cell
      exported: F
      readonly: F
      nameref: F
      val: (value.Str s:/home/uke/.local/share/oils/ysh_history)
    )
    p
    (Cell
      exported: F
      readonly: F
      nameref: F
      val: 
        (value.Proc
          name: p
          name_tok: 
            (Token
              id: Id.Lit_Chars
              length: 1
              col: 5
              line: (SourceLine line_num:1 content:"proc p {\n" src:...0x7f7737c49b90)
            )
          sig: (proc_sig__Open)
          body: 
            (BraceGroup
              left: (Token id:Id.Lit_LBrace length:1 col:7 line:...0x7f7737f57368)
              children: [
                (command.VarDecl
                  keyword: 
                    (Token
                      id: Id.KW_Var
                      length: 3
                      col: 2
                      line: 
                        (SourceLine
                          line_num: 2
                          content: "  var result = {}\n"
                          src: ...0x7f7737c49b90
                        )
                    )
                  lhs: [
                    (NameType
                      left: (Token id:Id.Expr_Name length:6 col:6 line:...0x7f7737f57418)
                      name: result
                    )
                  ]
                  rhs: 
                    (expr.Dict
                      left: (Token id:Id.Op_LBrace length:1 col:15 line:...0x7f7737f57418)
                      keys: []
                      values: []
                    )
                )
                (command.ForEach
                  keyword: 
                    (Token
                      id: Id.KW_For
                      length: 3
                      col: 2
                      line: 
                        (SourceLine
                          line_num: 3
                          content: "  for param in a b {\n"
                          src: ...0x7f7737c49b90
                        )
                    )
                  iter_names: [param]
                  iterable: 
                    (for_iter.Words
                      words: [
                        (CompoundWord
                          parts: [
                            (Token
                              id: Id.Lit_Chars
                              length: 1
                              col: 15
                              line: ...0x7f7737f57578
                              tval: a
                            )
                          ]
                        )
                        (CompoundWord
                          parts: [
                            (Token
                              id: Id.Lit_Chars
                              length: 1
                              col: 17
                              line: ...0x7f7737f57578
                              tval: b
                            )
                          ]
                        )
                      ]
                    )
                  body: 
                    (BraceGroup
                      left: (Token id:Id.Lit_LBrace length:1 col:19 line:...0x7f7737f57578)
                      children: [
                        (command.VarDecl
                          keyword: 
                            (Token
                              id: Id.KW_Var
                              length: 3
                              col: 4
                              line: 
                                (SourceLine
                                  line_num: 4
                                  content: "    var s = \"\"\"\n"
                                  src: ...0x7f7737c49b90
                                )
                            )
                          lhs: [
                            (NameType
                              left: (Token id:Id.Expr_Name length:1 col:8 line:...0x7f7737f575d0)
                              name: s
                            )
                          ]
                          rhs: 
                            (DoubleQuoted
                              left: 
                                (Token
                                  id: Id.Left_TDoubleQuote
                                  length: 3
                                  col: 12
                                  line: ...0x7f7737f575d0
                                )
                              parts: [
                                (Token
                                  id: Id.Lit_CharsWithoutPrefix
                                  length: 10
                                  col: 4
                                  line: 
                                    (SourceLine
                                      line_num: 5
                                      content: "    proc echo_$param(prefix) {\n"
                                      src: ...0x7f7737c49b90
                                    )
                                  tval: "proc echo_"
                                )
                                (SimpleVarSub
                                  tok: 
                                    (Token
                                      id: Id.VSub_DollarName
                                      length: 6
                                      col: 14
                                      line: ...0x7f7737f57628
                                      tval: param
                                    )
                                )
                                (Token
                                  id: Id.Lit_Chars
                                  length: 11
                                  col: 20
                                  line: ...0x7f7737f57628
                                  tval: "(prefix) {\n"
                                )
                                (Token
                                  id: Id.Lit_CharsWithoutPrefix
                                  length: 7
                                  col: 4
                                  line: 
                                    (SourceLine
                                      line_num: 6
                                      content: "      echo \\$prefix $param\n"
                                      src: ...0x7f7737c49b90
                                    )
                                  tval: "  echo "
                                )
                                (word_part.EscapedLiteral
                                  token: 
                                    (Token
                                      id: Id.Lit_EscapedChar
                                      length: 2
                                      col: 11
                                      line: ...0x7f7737f57680
                                    )
                                  ch: "$"
                                )
                                (Token
                                  id: Id.Lit_Chars
                                  length: 7
                                  col: 13
                                  line: ...0x7f7737f57680
                                  tval: "prefix "
                                )
                                (SimpleVarSub
                                  tok: 
                                    (Token
                                      id: Id.VSub_DollarName
                                      length: 6
                                      col: 20
                                      line: ...0x7f7737f57680
                                      tval: param
                                    )
                                )
                                (Token
                                  id: Id.Lit_Chars
                                  length: 1
                                  col: 26
                                  line: ...0x7f7737f57680
                                  tval: "\n"
                                )
                                (Token
                                  id: Id.Lit_CharsWithoutPrefix
                                  length: 2
                                  col: 4
                                  line: 
                                    (SourceLine
                                      line_num: 7
                                      content: "    }\n"
                                      src: ...0x7f7737c49b90
                                    )
                                  tval: "}\n"
                                )
                              ]
                              right: 
                                (Token
                                  id: Id.Right_DoubleQuote
                                  length: 1
                                  col: 6
                                  line: 
                                    (SourceLine
                                      line_num: 8
                                      content: "    \"\"\"\n"
                                      src: ...0x7f7737c49b90
                                    )
                                )
                            )
                        )
                        (command.VarDecl
                          keyword: (Token id:Id.KW_Var length:3 col:4 line:...0x7f7737f57890)
                          lhs: [
                            (NameType
                              left: (Token id:Id.Expr_Name length:3 col:8 line:...0x7f7737f57890)
                              name: cmd
                            )
                          ]
                          rhs: 
                            (expr.FuncCall
                              func: 
                                (expr.Var
                                  left: 
                                    (Token
                                      id: Id.Expr_Name
                                      length: 12
                                      col: 14
                                      line: ...0x7f7737f57890
                                    )
                                  name: parseCommand
                                )
                              args: 
                                (ArgList
                                  left: ...0x7f7737be1258
                                  pos_args: [
                                    (expr.Var
                                      left: 
                                        (Token
                                          id: Id.Expr_Name
                                          length: 1
                                          col: 27
                                          line: ...0x7f7737f57890
                                        )
                                      name: s
                                    )
                                  ]
                                  named_args: []
                                  right: 
                                    (Token
                                      id: Id.Op_RParen
                                      length: 1
                                      col: 28
                                      line: ...0x7f7737f57890
                                    )
                                )
                            )
                        )
                        (command.Simple
                          blame_tok: 
                            (Token
                              id: Id.Lit_Chars
                              length: 2
                              col: 4
                              line: 
                                (SourceLine
                                  line_num: 10
                                  content: "    pp asdl_ (cmd)\n"
                                  src: ...0x7f7737c49b90
                                )
                              tval: pp
                            )
                          more_env: []
                          words: [
                            (CompoundWord parts:[...0x7f7737be12c0])
                            (CompoundWord
                              parts: [
                                (Token
                                  id: Id.Lit_Chars
                                  length: 5
                                  col: 7
                                  line: ...0x7f7737f57998
                                  tval: asdl_
                                )
                              ]
                            )
                          ]
                          typed_args: 
                            (ArgList
                              left: (Token id:Id.Op_LParen length:1 col:13 line:...0x7f7737f57998)
                              pos_args: [
                                (expr.Var
                                  left: 
                                    (Token
                                      id: Id.Expr_Name
                                      length: 3
                                      col: 14
                                      line: ...0x7f7737f57998
                                    )
                                  name: cmd
                                )
                              ]
                              named_args: []
                              right: (Token id:Id.Op_RParen length:1 col:17 line:...0x7f7737f57998)
                            )
                          is_last_cmd: F
                        )
                        (command.Expr
                          keyword: 
                            (Token
                              id: Id.KW_Call
                              length: 4
                              col: 4
                              line: 
                                (SourceLine
                                  line_num: 13
                                  content: "    call io->eval(cmd)\n"
                                  src: ...0x7f7737c49b90
                                )
                            )
                          e: 
                            (expr.FuncCall
                              func: 
                                (Attribute
                                  obj: 
                                    (expr.Var
                                      left: 
                                        (Token
                                          id: Id.Expr_Name
                                          length: 2
                                          col: 9
                                          line: ...0x7f7737f57aa0
                                        )
                                      name: io
                                    )
                                  op: 
                                    (Token
                                      id: Id.Expr_RArrow
                                      length: 2
                                      col: 11
                                      line: ...0x7f7737f57aa0
                                    )
                                  attr: 
                                    (Token
                                      id: Id.Expr_Name
                                      length: 4
                                      col: 13
                                      line: ...0x7f7737f57aa0
                                    )
                                  attr_name: eval
                                  ctx: expr_context.Store
                                )
                              args: 
                                (ArgList
                                  left: 
                                    (Token
                                      id: Id.Op_LParen
                                      length: 1
                                      col: 17
                                      line: ...0x7f7737f57aa0
                                    )
                                  pos_args: [
                                    (expr.Var
                                      left: 
                                        (Token
                                          id: Id.Expr_Name
                                          length: 3
                                          col: 18
                                          line: ...0x7f7737f57aa0
                                        )
                                      name: cmd
                                    )
                                  ]
                                  named_args: []
                                  right: 
                                    (Token
                                      id: Id.Op_RParen
                                      length: 1
                                      col: 21
                                      line: ...0x7f7737f57aa0
                                    )
                                )
                            )
                        )
                        (command.Simple
                          blame_tok: 
                            (Token
                              id: Id.Lit_Chars
                              length: 6
                              col: 4
                              line: 
                                (SourceLine
                                  line_num: 15
                                  content: "    echo_a zz\n"
                                  src: ...0x7f7737c49b90
                                )
                            )
                          more_env: []
                          words: [
                            (CompoundWord parts:[...0x7f7737be1b48])
                            (CompoundWord
                              parts: [(Token id:Id.Lit_Chars length:2 col:11 line:...0x7f7737f57b50)]
                            )
                          ]
                          is_last_cmd: F
                        )
                      ]
                      right: 
                        (Token
                          id: Id.Lit_RBrace
                          length: 1
                          col: 2
                          line: (SourceLine line_num:16 content:"  }\n" src:...0x7f7737c49b90)
                        )
                    )
                )
                (command.Simple
                  blame_tok: 
                    (Token
                      id: Id.Lit_Chars
                      length: 6
                      col: 2
                      line: 
                        (SourceLine
                          line_num: 18
                          content: "  echo_a prefix\n"
                          src: ...0x7f7737c49b90
                        )
                    )
                  more_env: []
                  words: [
                    (CompoundWord parts:[...0x7f7737f28f58])
                    (CompoundWord
                      parts: [(Token id:Id.Lit_Chars length:6 col:9 line:...0x7f7737f57c58)]
                    )
                  ]
                  is_last_cmd: F
                )
                (command.Simple
                  blame_tok: 
                    (Token
                      id: Id.Lit_Chars
                      length: 6
                      col: 2
                      line: 
                        (SourceLine
                          line_num: 19
                          content: "  echo_b prefix\n"
                          src: ...0x7f7737c49b90
                        )
                    )
                  more_env: []
                  words: [
                    (CompoundWord parts:[...0x7f7737beb0b8])
                    (CompoundWord
                      parts: [(Token id:Id.Lit_Chars length:6 col:9 line:...0x7f7737f57cb0)]
                    )
                  ]
                  is_last_cmd: F
                )
              ]
              right: 
                (Token
                  id: Id.Lit_RBrace
                  length: 1
                  col: 0
                  line: (SourceLine line_num:20 content:"}\n" src:...0x7f7737c49b90)
                )
            )
          sh_compat: F
          module_frame: [
            Dict
            ARGV
            ...0x7f7737f46830
            UID
            ...0x7f7737f46890
            EUID
            ...0x7f7737f468f0
            PPID
            ...0x7f7737f46950
            OPTIND
            ...0x7f7737f469b0
            IFS
            ...0x7f7737f46a10
            HOSTNAME
            ...0x7f7737f46a70
            OSTYPE
            ...0x7f7737f46ad0
            PS4
            ...0x7f7737f46b30
            COMP_WORDBREAKS
            ...0x7f7737f46b90
            TMP
            ...0x7f7737f46bf0
            REPO_ROOT
            ...0x7f7737f46c50
            PYTHONPATH
            ...0x7f7737f46cb0
            PWD
            ...0x7f7737f46d10
            SH
            ...0x7f7737f46d70
            LC_ALL
            ...0x7f7737f46dd0
            PATH
            ...0x7f7737f46e30
            LOCALE_ARCHIVE
            ...0x7f7737f46e90
            OILS_GC_ON_EXIT
            ...0x7f7737f46ef0
            SHELLOPTS
            ...0x7f7737f46f50
            YSH_HISTFILE
            ...0x7f7737f46fb0
            p
            ...0x7f7737bd6170
          ]
        )
    )
  ]
)
stderr:
      echo_a zz
      ^~~~~~
[ stdin ]:15: 'echo_a' not found (OILS-ERR-100)
[ stdin ]:15: errexit PID 43111: command.Simple failed with status 127
ysh_ALT3 with parseCommand() then io->eval(), in local scope

[ysh_ALT stdout] Expected 'prefix a\nprefix b\n', got '(value.Command\n frag: \n (cmd_frag.Expr\n c: \n (Proc\n keyword: \n (Token\n id: Id.KW_Proc\n length: 4\n col: 0\n line: \n (SourceLine\n line_num: 1\n content: "proc echo_a(prefix) {\\n"\n src: \n (source.Dynamic\n what: "parseCommand()"\n location: \n (Token\n id: Id.Op_LParen\n length: 1\n col: 26\n line: \n (SourceLine\n line_num: 9\n content: " var cmd = parseCommand(s)\\n"\n src: (source.Stdin comment:"")\n )\n )\n )\n )\n )\n name: (Token id:Id.Lit_Chars length:6 col:5 line:...0x7f5fd9476598)\n sig: \n (proc_sig.Closed\n word: \n (ParamGroup\n params: [\n (Param\n blame_tok: (Token id:Id.Expr_Name length:6 col:12 line:...0x7f5fd9476598)\n name: prefix\n )\n ]\n )\n )\n body: \n (BraceGroup\n left: (Token id:Id.Lit_LBrace length:1 col:20 line:...0x7f5fd9476598)\n children: [\n (command.Simple\n blame_tok: \n (Token\n id: Id.Lit_Chars\n length: 4\n col: 2\n line: \n (SourceLine\n line_num: 2\n content: " echo $prefix a\\n"\n src: ...0x7f5fd94bee58\n )\n )\n more_env: []\n words: [\n (CompoundWord parts:[...0x7f5fd947b468])\n (CompoundWord\n parts: [\n (SimpleVarSub\n tok: (Token id:Id.VSub_DollarName length:7 col:7 line:...0x7f5fd94766d8)\n )\n ]\n )\n (CompoundWord\n parts: [(Token id:Id.Lit_Chars length:1 col:15 line:...0x7f5fd94766d8)]\n )\n ]\n is_last_cmd: F\n )\n ]\n right: \n (Token\n id: Id.Lit_RBrace\n length: 1\n col: 0\n line: (SourceLine line_num:3 content:"}\\n" src:...0x7f5fd94bee58)\n )\n )\n )\n )\n captured_frame: [\n Dict\n ARGV\n (Cell exported:F readonly:F nameref:F val:(value.List items:[]))\n result\n (Cell exported:F readonly:F nameref:F val:(value.Dict d:[Dict]))\n param\n (Cell exported:F readonly:F nameref:F val:(value.Str s:a))\n s\n (Cell\n exported: F\n readonly: F\n nameref: F\n val: (value.Str s:"proc echo_a(prefix) {\\n echo $prefix a\\n}\\n")\n )\n cmd\n (Cell exported:F readonly:F nameref:F val:...0x7f5fd9476728)\n ]\n module_frame: [\n Dict\n ARGV\n (Cell exported:F readonly:F nameref:F val:(value.List items:[]))\n UID\n (Cell exported:F readonly:F nameref:F val:(value.Str s:1000))\n EUID\n (Cell exported:F readonly:F nameref:F val:(value.Str s:1000))\n PPID\n (Cell exported:F readonly:F nameref:F val:(value.Str s:43098))\n OPTIND\n (Cell exported:F readonly:F nameref:F val:(value.Str s:1))\n IFS\n (Cell exported:F readonly:F nameref:F val:(value.Str s:" \\t\\n"))\n HOSTNAME\n (Cell exported:F readonly:F nameref:F val:(value.Str s:a171a6c813cd))\n OSTYPE\n (Cell exported:F readonly:F nameref:F val:(value.Str s:linux))\n PS4\n (Cell\n exported: F\n readonly: F\n nameref: F\n val: (value.Str s:"${SHX_indent}${SHX_punct}${SHX_pid_str} ")\n )\n COMP_WORDBREAKS\n (Cell exported:F readonly:F nameref:F val:(value.Str s:" \\t\\n\\"\'><=;|&(:"))\n TMP\n (Cell\n exported: T\n readonly: F\n nameref: F\n val: (value.Str s:/home/uke/oil/_tmp/spec-tmp/ysh-proc-meta.test.sh.43092/03-ysh_ALT)\n )\n REPO_ROOT\n (Cell exported:T readonly:F nameref:F val:(value.Str s:/home/uke/oil/test/..))\n SH\n (Cell\n exported: T\n readonly: F\n nameref: F\n val: (value.Str s:/home/uke/oil/_tmp/oil-tar-test/oil-0.23.0/_bin/ysh)\n )\n PATH\n (Cell\n exported: T\n readonly: F\n nameref: F\n val: \n (value.Str\n s: \n"/home/uke/oil/test/../spec/bin:/home/uke/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/uke/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/uke/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/uke/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/uke/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/home/uke/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/uke/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/uke/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/uke/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/uke/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/home/uke/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/uke/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/uke/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/uke/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/uke/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/home/uke/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/uke/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/uke/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/uke/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/uke/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"\n )\n )\n LC_ALL\n (Cell exported:T readonly:F nameref:F val:(value.Str s:C.UTF-8))\n LOCALE_ARCHIVE\n (Cell exported:T readonly:F nameref:F val:(value.Str s:""))\n OILS_GC_ON_EXIT\n (Cell exported:T readonly:F nameref:F val:(value.Str s:""))\n SHELLOPTS\n (Cell exported:F readonly:T nameref:F val:(value.Str s:""))\n PWD\n (Cell\n exported: T\n readonly: F\n nameref: F\n val: (value.Str s:/home/uke/oil/_tmp/spec-tmp/ysh-proc-meta.test.sh.43092/03-ysh_ALT)\n )\n YSH_HISTFILE\n (Cell\n exported: F\n readonly: F\n nameref: F\n val: (value.Str s:/home/uke/.local/share/oils/ysh_history)\n )\n p\n (Cell\n exported: F\n readonly: F\n nameref: F\n val: \n (value.Proc\n name: p\n name_tok: \n (Token\n id: Id.Lit_Chars\n length: 1\n col: 5\n line: (SourceLine line_num:1 content:"proc p {\\n" src:...0x7f5fd94e2f08)\n )\n sig: (proc_sig__Open)\n body: \n (BraceGroup\n left: (Token id:Id.Lit_LBrace length:1 col:7 line:...0x7f5fd9811c28)\n children: [\n (command.VarDecl\n keyword: \n (Token\n id: Id.KW_Var\n length: 3\n col: 2\n line: \n (SourceLine\n line_num: 2\n content: " var result = {}\\n"\n src: ...0x7f5fd94e2f08\n )\n )\n lhs: [\n (NameType\n left: (Token id:Id.Expr_Name length:6 col:6 line:...0x7f5fd9811e08)\n name: result\n )\n ]\n rhs: \n (expr.Dict\n left: (Token id:Id.Op_LBrace length:1 col:15 line:...0x7f5fd9811e08)\n keys: []\n values: []\n )\n )\n (command.ForEach\n keyword: \n (Token\n id: Id.KW_For\n length: 3\n col: 2\n line: \n (SourceLine\n line_num: 3\n content: " for param in a b {\\n"\n src: ...0x7f5fd94e2f08\n )\n )\n iter_names: [param]\n iterable: \n (for_iter.Words\n words: [\n (CompoundWord\n parts: [\n (Token\n id: Id.Lit_Chars\n length: 1\n col: 15\n line: ...0x7f5fd9811f48\n tval: a\n )\n ]\n )\n (CompoundWord\n parts: [\n (Token\n id: Id.Lit_Chars\n length: 1\n col: 17\n line: ...0x7f5fd9811f48\n tval: b\n )\n ]\n )\n ]\n )\n body: \n (BraceGroup\n left: (Token id:Id.Lit_LBrace length:1 col:19 line:...0x7f5fd9811f48)\n children: [\n (command.VarDecl\n keyword: \n (Token\n id: Id.KW_Var\n length: 3\n col: 4\n line: \n (SourceLine\n line_num: 4\n content: " var s = \\"\\"\\"\\n"\n src: ...0x7f5fd94e2f08\n )\n )\n lhs: [\n (NameType\n left: (Token id:Id.Expr_Name length:1 col:8 line:...0x7f5fd9811f98)\n name: s\n )\n ]\n rhs: \n (DoubleQuoted\n left: \n (Token\n id: Id.Left_TDoubleQuote\n length: 3\n col: 12\n line: ...0x7f5fd9811f98\n )\n parts: [\n (Token\n id: Id.Lit_CharsWithoutPrefix\n length: 10\n col: 4\n line: \n (SourceLine\n line_num: 5\n content: " proc echo_$param(prefix) {\\n"\n src: ...0x7f5fd94e2f08\n )\n tval: "proc echo_"\n )\n (SimpleVarSub\n tok: \n (Token\n id: Id.VSub_DollarName\n length: 6\n col: 14\n line: ...0x7f5fd9476048\n tval: param\n )\n )\n (Token\n id: Id.Lit_Chars\n length: 11\n col: 20\n line: ...0x7f5fd9476048\n tval: "(prefix) {\\n"\n )\n (Token\n id: Id.Lit_CharsWithoutPrefix\n length: 7\n col: 4\n line: \n (SourceLine\n line_num: 6\n content: " echo \\\\$prefix $param\\n"\n src: ...0x7f5fd94e2f08\n )\n tval: " echo "\n )\n (word_part.EscapedLiteral\n token: \n (Token\n id: Id.Lit_EscapedChar\n length: 2\n col: 11\n line: ...0x7f5fd9476098\n )\n ch: "$"\n )\n (Token\n id: Id.Lit_Chars\n length: 7\n col: 13\n line: ...0x7f5fd9476098\n tval: "prefix "\n )\n (SimpleVarSub\n tok: \n (Token\n id: Id.VSub_DollarName\n length: 6\n col: 20\n line: ...0x7f5fd9476098\n tval: param\n )\n )\n (Token\n id: Id.Lit_Chars\n length: 1\n col: 26\n line: ...0x7f5fd9476098\n tval: "\\n"\n )\n (Token\n id: Id.Lit_CharsWithoutPrefix\n length: 2\n col: 4\n line: \n (SourceLine\n line_num: 7\n content: " }\\n"\n src: ...0x7f5fd94e2f08\n )\n tval: "}\\n"\n )\n ]\n right: \n (Token\n id: Id.Right_DoubleQuote\n length: 1\n col: 6\n line: \n (SourceLine\n line_num: 8\n content: " \\"\\"\\"\\n"\n src: ...0x7f5fd94e2f08\n )\n )\n )\n )\n (command.VarDecl\n keyword: (Token id:Id.KW_Var length:3 col:4 line:...0x7f5fd9476278)\n lhs: [\n (NameType\n left: (Token id:Id.Expr_Name length:3 col:8 line:...0x7f5fd9476278)\n name: cmd\n )\n ]\n rhs: \n (expr.FuncCall\n func: \n (expr.Var\n left: \n (Token\n id: Id.Expr_Name\n length: 12\n col: 14\n line: ...0x7f5fd9476278\n )\n name: parseCommand\n )\n args: \n (ArgList\n left: ...0x7f5fd94f2228\n pos_args: [\n (expr.Var\n left: \n (Token\n id: Id.Expr_Name\n length: 1\n col: 27\n line: ...0x7f5fd9476278\n )\n name: s\n )\n ]\n named_args: []\n right: \n (Token\n id: Id.Op_RParen\n length: 1\n col: 28\n line: ...0x7f5fd9476278\n )\n )\n )\n )\n (command.Simple\n blame_tok: \n (Token\n id: Id.Lit_Chars\n length: 2\n col: 4\n line: \n (SourceLine\n line_num: 10\n content: " pp asdl_ (cmd)\\n"\n src: ...0x7f5fd94e2f08\n )\n tval: pp\n )\n more_env: []\n words: [\n (CompoundWord parts:[...0x7f5fd94f2288])\n (CompoundWord\n parts: [\n (Token\n id: Id.Lit_Chars\n length: 5\n col: 7\n line: ...0x7f5fd9476368\n tval: asdl_\n )\n ]\n )\n ]\n typed_args: \n (ArgList\n left: (Token id:Id.Op_LParen length:1 col:13 line:...0x7f5fd9476368)\n pos_args: [\n (expr.Var\n left: \n (Token\n id: Id.Expr_Name\n length: 3\n col: 14\n line: ...0x7f5fd9476368\n )\n name: cmd\n )\n ]\n named_args: []\n right: (Token id:Id.Op_RParen length:1 col:17 line:...0x7f5fd9476368)\n )\n is_last_cmd: F\n )\n (command.Expr\n keyword: \n (Token\n id: Id.KW_Call\n length: 4\n col: 4\n line: \n (SourceLine\n line_num: 13\n content: " call io->eval(cmd)\\n"\n src: ...0x7f5fd94e2f08\n )\n )\n e: \n (expr.FuncCall\n func: \n (Attribute\n obj: \n (expr.Var\n left: \n (Token\n id: Id.Expr_Name\n length: 2\n col: 9\n line: ...0x7f5fd9476458\n )\n name: io\n )\n op: \n (Token\n id: Id.Expr_RArrow\n length: 2\n col: 11\n line: ...0x7f5fd9476458\n )\n attr: \n (Token\n id: Id.Expr_Name\n length: 4\n col: 13\n line: ...0x7f5fd9476458\n )\n attr_name: eval\n ctx: expr_context.Store\n )\n args: \n (ArgList\n left: \n (Token\n id: Id.Op_LParen\n length: 1\n col: 17\n line: ...0x7f5fd9476458\n )\n pos_args: [\n (expr.Var\n left: \n (Token\n id: Id.Expr_Name\n length: 3\n col: 18\n line: ...0x7f5fd9476458\n )\n name: cmd\n )\n ]\n named_args: []\n right: \n (Token\n id: Id.Op_RParen\n length: 1\n col: 21\n line: ...0x7f5fd9476458\n )\n )\n )\n )\n (command.Simple\n blame_tok: \n (Token\n id: Id.Lit_Chars\n length: 6\n col: 4\n line: \n (SourceLine\n line_num: 15\n content: " echo_a zz\\n"\n src: ...0x7f5fd94e2f08\n )\n )\n more_env: []\n words: [\n (CompoundWord parts:[...0x7f5fd94f2a68])\n (CompoundWord\n parts: [(Token id:Id.Lit_Chars length:2 col:11 line:...0x7f5fd94764f8)]\n )\n ]\n is_last_cmd: F\n )\n ]\n right: \n (Token\n id: Id.Lit_RBrace\n length: 1\n col: 2\n line: (SourceLine line_num:16 content:" }\\n" src:...0x7f5fd94e2f08)\n )\n )\n )\n (command.Simple\n blame_tok: \n (Token\n id: Id.Lit_Chars\n length: 6\n col: 2\n line: \n (SourceLine\n line_num: 18\n content: " echo_a prefix\\n"\n src: ...0x7f5fd94e2f08\n )\n )\n more_env: []\n words: [\n (CompoundWord parts:[...0x7f5fd9862fa8])\n (CompoundWord\n parts: [(Token id:Id.Lit_Chars length:6 col:9 line:...0x7f5fd94765e8)]\n )\n ]\n is_last_cmd: F\n )\n (command.Simple\n blame_tok: \n (Token\n id: Id.Lit_Chars\n length: 6\n col: 2\n line: \n (SourceLine\n line_num: 19\n content: " echo_b prefix\\n"\n src: ...0x7f5fd94e2f08\n )\n )\n more_env: []\n words: [\n (CompoundWord parts:[...0x7f5fd94f2ee8])\n (CompoundWord\n parts: [(Token id:Id.Lit_Chars length:6 col:9 line:...0x7f5fd9476638)]\n )\n ]\n is_last_cmd: F\n )\n ]\n right: \n (Token\n id: Id.Lit_RBrace\n length: 1\n col: 0\n line: (SourceLine line_num:20 content:"}\\n" src:...0x7f5fd94e2f08)\n )\n )\n sh_compat: F\n module_frame: [\n Dict\n ARGV\n ...0x7f5fd9e800f8\n UID\n ...0x7f5fd9e80a40\n EUID\n ...0x7f5fd9881678\n PPID\n ...0x7f5fd98816d0\n OPTIND\n ...0x7f5fd9881728\n IFS\n ...0x7f5fd9881780\n HOSTNAME\n ...0x7f5fd98817d8\n OSTYPE\n ...0x7f5fd9881830\n PS4\n ...0x7f5fd9881888\n COMP_WORDBREAKS\n ...0x7f5fd98818e0\n TMP\n ...0x7f5fd9881938\n REPO_ROOT\n ...0x7f5fd9881990\n SH\n ...0x7f5fd98819e8\n PATH\n ...0x7f5fd9881a40\n LC_ALL\n ...0x7f5fd9881a98\n LOCALE_ARCHIVE\n ...0x7f5fd9881af0\n OILS_GC_ON_EXIT\n ...0x7f5fd9881b48\n SHELLOPTS\n ...0x7f5fd9881ba0\n PWD\n ...0x7f5fd9881bf8\n YSH_HISTFILE\n ...0x7f5fd9881c50\n p\n ...0x7f5fd9881db0\n ]\n )\n )\n ]\n)\n'

stdout:
(value.Command
  frag: 
    (cmd_frag.Expr
      c: 
        (Proc
          keyword: 
            (Token
              id: Id.KW_Proc
              length: 4
              col: 0
              line: 
                (SourceLine
                  line_num: 1
                  content: "proc echo_a(prefix) {\n"
                  src: 
                    (source.Dynamic
                      what: "parseCommand()"
                      location: 
                        (Token
                          id: Id.Op_LParen
                          length: 1
                          col: 26
                          line: 
                            (SourceLine
                              line_num: 9
                              content: "    var cmd = parseCommand(s)\n"
                              src: (source.Stdin comment:"")
                            )
                        )
                    )
                )
            )
          name: (Token id:Id.Lit_Chars length:6 col:5 line:...0x7f5fd9476598)
          sig: 
            (proc_sig.Closed
              word: 
                (ParamGroup
                  params: [
                    (Param
                      blame_tok: (Token id:Id.Expr_Name length:6 col:12 line:...0x7f5fd9476598)
                      name: prefix
                    )
                  ]
                )
            )
          body: 
            (BraceGroup
              left: (Token id:Id.Lit_LBrace length:1 col:20 line:...0x7f5fd9476598)
              children: [
                (command.Simple
                  blame_tok: 
                    (Token
                      id: Id.Lit_Chars
                      length: 4
                      col: 2
                      line: 
                        (SourceLine
                          line_num: 2
                          content: "  echo $prefix a\n"
                          src: ...0x7f5fd94bee58
                        )
                    )
                  more_env: []
                  words: [
                    (CompoundWord parts:[...0x7f5fd947b468])
                    (CompoundWord
                      parts: [
                        (SimpleVarSub
                          tok: (Token id:Id.VSub_DollarName length:7 col:7 line:...0x7f5fd94766d8)
                        )
                      ]
                    )
                    (CompoundWord
                      parts: [(Token id:Id.Lit_Chars length:1 col:15 line:...0x7f5fd94766d8)]
                    )
                  ]
                  is_last_cmd: F
                )
              ]
              right: 
                (Token
                  id: Id.Lit_RBrace
                  length: 1
                  col: 0
                  line: (SourceLine line_num:3 content:"}\n" src:...0x7f5fd94bee58)
                )
            )
        )
    )
  captured_frame: [
    Dict
    ARGV
    (Cell exported:F readonly:F nameref:F val:(value.List items:[]))
    result
    (Cell exported:F readonly:F nameref:F val:(value.Dict d:[Dict]))
    param
    (Cell exported:F readonly:F nameref:F val:(value.Str s:a))
    s
    (Cell
      exported: F
      readonly: F
      nameref: F
      val: (value.Str s:"proc echo_a(prefix) {\n  echo $prefix a\n}\n")
    )
    cmd
    (Cell exported:F readonly:F nameref:F val:...0x7f5fd9476728)
  ]
  module_frame: [
    Dict
    ARGV
    (Cell exported:F readonly:F nameref:F val:(value.List items:[]))
    UID
    (Cell exported:F readonly:F nameref:F val:(value.Str s:1000))
    EUID
    (Cell exported:F readonly:F nameref:F val:(value.Str s:1000))
    PPID
    (Cell exported:F readonly:F nameref:F val:(value.Str s:43098))
    OPTIND
    (Cell exported:F readonly:F nameref:F val:(value.Str s:1))
    IFS
    (Cell exported:F readonly:F nameref:F val:(value.Str s:" \t\n"))
    HOSTNAME
    (Cell exported:F readonly:F nameref:F val:(value.Str s:a171a6c813cd))
    OSTYPE
    (Cell exported:F readonly:F nameref:F val:(value.Str s:linux))
    PS4
    (Cell
      exported: F
      readonly: F
      nameref: F
      val: (value.Str s:"${SHX_indent}${SHX_punct}${SHX_pid_str} ")
    )
    COMP_WORDBREAKS
    (Cell exported:F readonly:F nameref:F val:(value.Str s:" \t\n\"'><=;|&(:"))
    TMP
    (Cell
      exported: T
      readonly: F
      nameref: F
      val: (value.Str s:/home/uke/oil/_tmp/spec-tmp/ysh-proc-meta.test.sh.43092/03-ysh_ALT)
    )
    REPO_ROOT
    (Cell exported:T readonly:F nameref:F val:(value.Str s:/home/uke/oil/test/..))
    SH
    (Cell
      exported: T
      readonly: F
      nameref: F
      val: (value.Str s:/home/uke/oil/_tmp/oil-tar-test/oil-0.23.0/_bin/ysh)
    )
    PATH
    (Cell
      exported: T
      readonly: F
      nameref: F
      val: 
        (value.Str
          s: 
"/home/uke/oil/test/../spec/bin:/home/uke/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/uke/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/uke/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/uke/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/uke/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/home/uke/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/uke/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/uke/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/uke/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/uke/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/home/uke/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/uke/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/uke/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/uke/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/uke/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/home/uke/wedge/oils-for-unix.org/pkg/yash/2.49/bin:/home/uke/wedge/oils-for-unix.org/pkg/busybox/1.35.0:/home/uke/wedge/oils-for-unix.org/pkg/zsh/5.1.1/bin:/home/uke/wedge/oils-for-unix.org/pkg/mksh/R52c:/home/uke/wedge/oils-for-unix.org/pkg/dash/0.5.10.2/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/5.2.21/bin:/home/uke/wedge/oils-for-unix.org/pkg/bash/4.4/bin:/wedge/oils-for-unix.org/pkg/re2c/3.0/bin:/wedge/oils-for-unix.org/pkg/python3/3.10.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
        )
    )
    LC_ALL
    (Cell exported:T readonly:F nameref:F val:(value.Str s:C.UTF-8))
    LOCALE_ARCHIVE
    (Cell exported:T readonly:F nameref:F val:(value.Str s:""))
    OILS_GC_ON_EXIT
    (Cell exported:T readonly:F nameref:F val:(value.Str s:""))
    SHELLOPTS
    (Cell exported:F readonly:T nameref:F val:(value.Str s:""))
    PWD
    (Cell
      exported: T
      readonly: F
      nameref: F
      val: (value.Str s:/home/uke/oil/_tmp/spec-tmp/ysh-proc-meta.test.sh.43092/03-ysh_ALT)
    )
    YSH_HISTFILE
    (Cell
      exported: F
      readonly: F
      nameref: F
      val: (value.Str s:/home/uke/.local/share/oils/ysh_history)
    )
    p
    (Cell
      exported: F
      readonly: F
      nameref: F
      val: 
        (value.Proc
          name: p
          name_tok: 
            (Token
              id: Id.Lit_Chars
              length: 1
              col: 5
              line: (SourceLine line_num:1 content:"proc p {\n" src:...0x7f5fd94e2f08)
            )
          sig: (proc_sig__Open)
          body: 
            (BraceGroup
              left: (Token id:Id.Lit_LBrace length:1 col:7 line:...0x7f5fd9811c28)
              children: [
                (command.VarDecl
                  keyword: 
                    (Token
                      id: Id.KW_Var
                      length: 3
                      col: 2
                      line: 
                        (SourceLine
                          line_num: 2
                          content: "  var result = {}\n"
                          src: ...0x7f5fd94e2f08
                        )
                    )
                  lhs: [
                    (NameType
                      left: (Token id:Id.Expr_Name length:6 col:6 line:...0x7f5fd9811e08)
                      name: result
                    )
                  ]
                  rhs: 
                    (expr.Dict
                      left: (Token id:Id.Op_LBrace length:1 col:15 line:...0x7f5fd9811e08)
                      keys: []
                      values: []
                    )
                )
                (command.ForEach
                  keyword: 
                    (Token
                      id: Id.KW_For
                      length: 3
                      col: 2
                      line: 
                        (SourceLine
                          line_num: 3
                          content: "  for param in a b {\n"
                          src: ...0x7f5fd94e2f08
                        )
                    )
                  iter_names: [param]
                  iterable: 
                    (for_iter.Words
                      words: [
                        (CompoundWord
                          parts: [
                            (Token
                              id: Id.Lit_Chars
                              length: 1
                              col: 15
                              line: ...0x7f5fd9811f48
                              tval: a
                            )
                          ]
                        )
                        (CompoundWord
                          parts: [
                            (Token
                              id: Id.Lit_Chars
                              length: 1
                              col: 17
                              line: ...0x7f5fd9811f48
                              tval: b
                            )
                          ]
                        )
                      ]
                    )
                  body: 
                    (BraceGroup
                      left: (Token id:Id.Lit_LBrace length:1 col:19 line:...0x7f5fd9811f48)
                      children: [
                        (command.VarDecl
                          keyword: 
                            (Token
                              id: Id.KW_Var
                              length: 3
                              col: 4
                              line: 
                                (SourceLine
                                  line_num: 4
                                  content: "    var s = \"\"\"\n"
                                  src: ...0x7f5fd94e2f08
                                )
                            )
                          lhs: [
                            (NameType
                              left: (Token id:Id.Expr_Name length:1 col:8 line:...0x7f5fd9811f98)
                              name: s
                            )
                          ]
                          rhs: 
                            (DoubleQuoted
                              left: 
                                (Token
                                  id: Id.Left_TDoubleQuote
                                  length: 3
                                  col: 12
                                  line: ...0x7f5fd9811f98
                                )
                              parts: [
                                (Token
                                  id: Id.Lit_CharsWithoutPrefix
                                  length: 10
                                  col: 4
                                  line: 
                                    (SourceLine
                                      line_num: 5
                                      content: "    proc echo_$param(prefix) {\n"
                                      src: ...0x7f5fd94e2f08
                                    )
                                  tval: "proc echo_"
                                )
                                (SimpleVarSub
                                  tok: 
                                    (Token
                                      id: Id.VSub_DollarName
                                      length: 6
                                      col: 14
                                      line: ...0x7f5fd9476048
                                      tval: param
                                    )
                                )
                                (Token
                                  id: Id.Lit_Chars
                                  length: 11
                                  col: 20
                                  line: ...0x7f5fd9476048
                                  tval: "(prefix) {\n"
                                )
                                (Token
                                  id: Id.Lit_CharsWithoutPrefix
                                  length: 7
                                  col: 4
                                  line: 
                                    (SourceLine
                                      line_num: 6
                                      content: "      echo \\$prefix $param\n"
                                      src: ...0x7f5fd94e2f08
                                    )
                                  tval: "  echo "
                                )
                                (word_part.EscapedLiteral
                                  token: 
                                    (Token
                                      id: Id.Lit_EscapedChar
                                      length: 2
                                      col: 11
                                      line: ...0x7f5fd9476098
                                    )
                                  ch: "$"
                                )
                                (Token
                                  id: Id.Lit_Chars
                                  length: 7
                                  col: 13
                                  line: ...0x7f5fd9476098
                                  tval: "prefix "
                                )
                                (SimpleVarSub
                                  tok: 
                                    (Token
                                      id: Id.VSub_DollarName
                                      length: 6
                                      col: 20
                                      line: ...0x7f5fd9476098
                                      tval: param
                                    )
                                )
                                (Token
                                  id: Id.Lit_Chars
                                  length: 1
                                  col: 26
                                  line: ...0x7f5fd9476098
                                  tval: "\n"
                                )
                                (Token
                                  id: Id.Lit_CharsWithoutPrefix
                                  length: 2
                                  col: 4
                                  line: 
                                    (SourceLine
                                      line_num: 7
                                      content: "    }\n"
                                      src: ...0x7f5fd94e2f08
                                    )
                                  tval: "}\n"
                                )
                              ]
                              right: 
                                (Token
                                  id: Id.Right_DoubleQuote
                                  length: 1
                                  col: 6
                                  line: 
                                    (SourceLine
                                      line_num: 8
                                      content: "    \"\"\"\n"
                                      src: ...0x7f5fd94e2f08
                                    )
                                )
                            )
                        )
                        (command.VarDecl
                          keyword: (Token id:Id.KW_Var length:3 col:4 line:...0x7f5fd9476278)
                          lhs: [
                            (NameType
                              left: (Token id:Id.Expr_Name length:3 col:8 line:...0x7f5fd9476278)
                              name: cmd
                            )
                          ]
                          rhs: 
                            (expr.FuncCall
                              func: 
                                (expr.Var
                                  left: 
                                    (Token
                                      id: Id.Expr_Name
                                      length: 12
                                      col: 14
                                      line: ...0x7f5fd9476278
                                    )
                                  name: parseCommand
                                )
                              args: 
                                (ArgList
                                  left: ...0x7f5fd94f2228
                                  pos_args: [
                                    (expr.Var
                                      left: 
                                        (Token
                                          id: Id.Expr_Name
                                          length: 1
                                          col: 27
                                          line: ...0x7f5fd9476278
                                        )
                                      name: s
                                    )
                                  ]
                                  named_args: []
                                  right: 
                                    (Token
                                      id: Id.Op_RParen
                                      length: 1
                                      col: 28
                                      line: ...0x7f5fd9476278
                                    )
                                )
                            )
                        )
                        (command.Simple
                          blame_tok: 
                            (Token
                              id: Id.Lit_Chars
                              length: 2
                              col: 4
                              line: 
                                (SourceLine
                                  line_num: 10
                                  content: "    pp asdl_ (cmd)\n"
                                  src: ...0x7f5fd94e2f08
                                )
                              tval: pp
                            )
                          more_env: []
                          words: [
                            (CompoundWord parts:[...0x7f5fd94f2288])
                            (CompoundWord
                              parts: [
                                (Token
                                  id: Id.Lit_Chars
                                  length: 5
                                  col: 7
                                  line: ...0x7f5fd9476368
                                  tval: asdl_
                                )
                              ]
                            )
                          ]
                          typed_args: 
                            (ArgList
                              left: (Token id:Id.Op_LParen length:1 col:13 line:...0x7f5fd9476368)
                              pos_args: [
                                (expr.Var
                                  left: 
                                    (Token
                                      id: Id.Expr_Name
                                      length: 3
                                      col: 14
                                      line: ...0x7f5fd9476368
                                    )
                                  name: cmd
                                )
                              ]
                              named_args: []
                              right: (Token id:Id.Op_RParen length:1 col:17 line:...0x7f5fd9476368)
                            )
                          is_last_cmd: F
                        )
                        (command.Expr
                          keyword: 
                            (Token
                              id: Id.KW_Call
                              length: 4
                              col: 4
                              line: 
                                (SourceLine
                                  line_num: 13
                                  content: "    call io->eval(cmd)\n"
                                  src: ...0x7f5fd94e2f08
                                )
                            )
                          e: 
                            (expr.FuncCall
                              func: 
                                (Attribute
                                  obj: 
                                    (expr.Var
                                      left: 
                                        (Token
                                          id: Id.Expr_Name
                                          length: 2
                                          col: 9
                                          line: ...0x7f5fd9476458
                                        )
                                      name: io
                                    )
                                  op: 
                                    (Token
                                      id: Id.Expr_RArrow
                                      length: 2
                                      col: 11
                                      line: ...0x7f5fd9476458
                                    )
                                  attr: 
                                    (Token
                                      id: Id.Expr_Name
                                      length: 4
                                      col: 13
                                      line: ...0x7f5fd9476458
                                    )
                                  attr_name: eval
                                  ctx: expr_context.Store
                                )
                              args: 
                                (ArgList
                                  left: 
                                    (Token
                                      id: Id.Op_LParen
                                      length: 1
                                      col: 17
                                      line: ...0x7f5fd9476458
                                    )
                                  pos_args: [
                                    (expr.Var
                                      left: 
                                        (Token
                                          id: Id.Expr_Name
                                          length: 3
                                          col: 18
                                          line: ...0x7f5fd9476458
                                        )
                                      name: cmd
                                    )
                                  ]
                                  named_args: []
                                  right: 
                                    (Token
                                      id: Id.Op_RParen
                                      length: 1
                                      col: 21
                                      line: ...0x7f5fd9476458
                                    )
                                )
                            )
                        )
                        (command.Simple
                          blame_tok: 
                            (Token
                              id: Id.Lit_Chars
                              length: 6
                              col: 4
                              line: 
                                (SourceLine
                                  line_num: 15
                                  content: "    echo_a zz\n"
                                  src: ...0x7f5fd94e2f08
                                )
                            )
                          more_env: []
                          words: [
                            (CompoundWord parts:[...0x7f5fd94f2a68])
                            (CompoundWord
                              parts: [(Token id:Id.Lit_Chars length:2 col:11 line:...0x7f5fd94764f8)]
                            )
                          ]
                          is_last_cmd: F
                        )
                      ]
                      right: 
                        (Token
                          id: Id.Lit_RBrace
                          length: 1
                          col: 2
                          line: (SourceLine line_num:16 content:"  }\n" src:...0x7f5fd94e2f08)
                        )
                    )
                )
                (command.Simple
                  blame_tok: 
                    (Token
                      id: Id.Lit_Chars
                      length: 6
                      col: 2
                      line: 
                        (SourceLine
                          line_num: 18
                          content: "  echo_a prefix\n"
                          src: ...0x7f5fd94e2f08
                        )
                    )
                  more_env: []
                  words: [
                    (CompoundWord parts:[...0x7f5fd9862fa8])
                    (CompoundWord
                      parts: [(Token id:Id.Lit_Chars length:6 col:9 line:...0x7f5fd94765e8)]
                    )
                  ]
                  is_last_cmd: F
                )
                (command.Simple
                  blame_tok: 
                    (Token
                      id: Id.Lit_Chars
                      length: 6
                      col: 2
                      line: 
                        (SourceLine
                          line_num: 19
                          content: "  echo_b prefix\n"
                          src: ...0x7f5fd94e2f08
                        )
                    )
                  more_env: []
                  words: [
                    (CompoundWord parts:[...0x7f5fd94f2ee8])
                    (CompoundWord
                      parts: [(Token id:Id.Lit_Chars length:6 col:9 line:...0x7f5fd9476638)]
                    )
                  ]
                  is_last_cmd: F
                )
              ]
              right: 
                (Token
                  id: Id.Lit_RBrace
                  length: 1
                  col: 0
                  line: (SourceLine line_num:20 content:"}\n" src:...0x7f5fd94e2f08)
                )
            )
          sh_compat: F
          module_frame: [
            Dict
            ARGV
            ...0x7f5fd9e800f8
            UID
            ...0x7f5fd9e80a40
            EUID
            ...0x7f5fd9881678
            PPID
            ...0x7f5fd98816d0
            OPTIND
            ...0x7f5fd9881728
            IFS
            ...0x7f5fd9881780
            HOSTNAME
            ...0x7f5fd98817d8
            OSTYPE
            ...0x7f5fd9881830
            PS4
            ...0x7f5fd9881888
            COMP_WORDBREAKS
            ...0x7f5fd98818e0
            TMP
            ...0x7f5fd9881938
            REPO_ROOT
            ...0x7f5fd9881990
            SH
            ...0x7f5fd98819e8
            PATH
            ...0x7f5fd9881a40
            LC_ALL
            ...0x7f5fd9881a98
            LOCALE_ARCHIVE
            ...0x7f5fd9881af0
            OILS_GC_ON_EXIT
            ...0x7f5fd9881b48
            SHELLOPTS
            ...0x7f5fd9881ba0
            PWD
            ...0x7f5fd9881bf8
            YSH_HISTFILE
            ...0x7f5fd9881c50
            p
            ...0x7f5fd9881db0
          ]
        )
    )
  ]
)
stderr:
      echo_a zz
      ^~~~~~
[ stdin ]:15: 'echo_a' not found (OILS-ERR-100)
[ stdin ]:15: errexit PID 43114: command.Simple failed with status 127